refactor: remove console logs for image generation and reference restoration

This commit is contained in:
Yusuf İpek
2026-01-21 18:54:52 +03:00
parent d8f7a2c909
commit 826039be09
-4
View File
@@ -549,7 +549,6 @@ async function generateImages() {
const modelConfig = MODEL_CONFIGS[state.selectedModel]; const modelConfig = MODEL_CONFIGS[state.selectedModel];
const currentReferences = state.references.length > 0 ? [...state.references] : []; const currentReferences = state.references.length > 0 ? [...state.references] : [];
console.log('Generating with references:', currentReferences.length, currentReferences);
let successCount = 0; let successCount = 0;
let failCount = 0; let failCount = 0;
@@ -857,13 +856,10 @@ function recreateImage() {
}); });
// Restore references (always update the UI, even if empty to clear previous refs) // Restore references (always update the UI, even if empty to clear previous refs)
console.log('Recreate - image references:', state.currentImage.references);
if (state.currentImage.references && state.currentImage.references.length > 0) { if (state.currentImage.references && state.currentImage.references.length > 0) {
state.references = [...state.currentImage.references]; state.references = [...state.currentImage.references];
console.log('Restored references:', state.references.length);
} else { } else {
state.references = []; state.references = [];
console.log('No references to restore');
} }
renderReferenceSlots(); renderReferenceSlots();