@yogiswara/honcho-editor-ui 2.5.1 → 2.5.2
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.
|
@@ -49,9 +49,11 @@ export function useHonchoEditorBulk(controller, eventID, firebaseUid) {
|
|
|
49
49
|
const [selectedBulkPreset, setSelectedBulkPreset] = useState('preset1');
|
|
50
50
|
const imageData = useMemo(() => {
|
|
51
51
|
return imageCollection.map(item => {
|
|
52
|
+
console.log("item FROM USEHONCHOBULK: ", item);
|
|
52
53
|
return mapGalleryToPhotoData(item, selectedIds);
|
|
53
54
|
}).map(item => {
|
|
54
55
|
const adjustment = currentBatch.allImages[item.key];
|
|
56
|
+
console.log("adjustment FROM USEHONCHOBULK: ", adjustment);
|
|
55
57
|
return adjustment ? { ...item, ...adjustment } : item;
|
|
56
58
|
});
|
|
57
59
|
}, [imageCollection, selectedIds, currentBatch.allImages]);
|
|
@@ -152,10 +154,12 @@ export function useHonchoEditorBulk(controller, eventID, firebaseUid) {
|
|
|
152
154
|
.finally(() => {
|
|
153
155
|
setIsLoading(false);
|
|
154
156
|
});
|
|
157
|
+
console.log("Image data FROM USEHONCHOBULK: ", imageData);
|
|
155
158
|
}
|
|
156
159
|
}, [eventID, firebaseUid, controller]);
|
|
157
160
|
useEffect(() => {
|
|
158
161
|
setImageCollection([]);
|
|
162
|
+
console.log("Image collection FROM USEHONCHOBULK: : ", imageCollection);
|
|
159
163
|
}, [loadImages]);
|
|
160
164
|
return {
|
|
161
165
|
imageData,
|