Reset any existing state before running create

This commit is contained in:
Abi Raja 2023-11-26 15:35:22 -05:00
parent e8f4bf1dea
commit 0d542e18cc

View File

@ -116,6 +116,9 @@ function App() {
// Initial version creation // Initial version creation
function doCreate(referenceImages: string[]) { function doCreate(referenceImages: string[]) {
// Reset any existing state
reset();
setReferenceImages(referenceImages); setReferenceImages(referenceImages);
if (referenceImages.length > 0) { if (referenceImages.length > 0) {
doGenerateCode({ doGenerateCode({