Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
do not allow empty updates
Abi Raja9dfb0dc5b836
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsxindex e6f85038..22d167bd 100644--- a/frontend/src/App.tsx+++ b/frontend/src/App.tsx@@ -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."