@yogiswara/honcho-editor-ui 3.8.5 → 3.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -385,8 +385,10 @@ export function useHonchoEditorBulk(controller, eventID, firebaseUid) {
|
|
|
385
385
|
newImages: images.filter(img => !lastSyncedImageIds.current.has(img.id)).map(img => img.id)
|
|
386
386
|
}, '[useHonchoEditorBulk] 🔍 New images check');
|
|
387
387
|
if (hasNewImages) {
|
|
388
|
-
|
|
389
|
-
|
|
388
|
+
const newImagesOnly = images.filter(img => !lastSyncedImageIds.current.has(img.id));
|
|
389
|
+
log.info({ imageCount: newImagesOnly.length }, '[useHonchoEditorBulk] 🔄 INITIALIZE: Initializing new images from pagination data');
|
|
390
|
+
// ✅ FIX: Only pass the new images to the initializer so you don't overwrite the first 2 images!
|
|
391
|
+
initializeFromPaginationRef.current(newImagesOnly.map(mapToImageAdjustmentConfig));
|
|
390
392
|
lastSyncedImageIds.current = currentImageIds;
|
|
391
393
|
}
|
|
392
394
|
else {
|