@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
- log.info({ imageCount: images.length }, '[useHonchoEditorBulk] 🔄 INITIALIZE: Initializing new images from pagination data (preserves history)');
389
- initializeFromPaginationRef.current(images.map(mapToImageAdjustmentConfig));
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "3.8.5",
3
+ "version": "3.8.6",
4
4
  "description": "A complete UI component library for the Honcho photo editor.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",