Merge main into sweep/color-thief-feature

This commit is contained in:
sweep-ai[bot] 2023-11-26 20:35:28 +00:00 committed by GitHub
commit eabb40dfad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

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({