Reset any existing state before running create

This commit is contained in:
Abi Raja 2023-11-26 15:35:22 -05:00 committed by dialmedu
parent 5cd113fd54
commit 7582d7e6e9

View File

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