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