Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Reset any existing state before running create

Abi Raja0d542e18cc5f
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 4c843d64..529283c6 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -116,6 +116,9 @@ function App() {
// Initial version creation
function doCreate(referenceImages: string[]) {
+ // Reset any existing state
+ reset();
+
setReferenceImages(referenceImages);
if (referenceImages.length > 0) {
doGenerateCode({