do not allow empty updates
This commit is contained in:
parent
4288cf2088
commit
9dfb0dc5b8
@ -298,6 +298,11 @@ function App() {
|
||||
updateInstruction: string,
|
||||
selectedElement?: HTMLElement
|
||||
) {
|
||||
if (updateInstruction.trim() === "") {
|
||||
toast.error("Please include some instructions for AI on what to update.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (currentVersion === null) {
|
||||
toast.error(
|
||||
"No current version set. Contact support or open a Github issue."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user