Reset any existing state before running create
This commit is contained in:
parent
e8f4bf1dea
commit
0d542e18cc
@ -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({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user