@searpent/react-image-annotate 2.0.38 → 2.0.40
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.
- package/Annotator/examplePhotos.js +1 -1
- package/Annotator/index.js +5 -2
- package/package.json +1 -1
|
@@ -797,7 +797,7 @@ var examplePhotos = [{
|
|
|
797
797
|
},
|
|
798
798
|
"text": "[{\"key\":\"articleType\",\"value\":\"ads\"}, {\"key\":\"section\",\"value\":\"last page\"}]",
|
|
799
799
|
"groupId": "1",
|
|
800
|
-
"id": "
|
|
800
|
+
"id": "2615bf87-7247-4bde-a0f9-45413034a6a6"
|
|
801
801
|
}]
|
|
802
802
|
}]
|
|
803
803
|
},
|
package/Annotator/index.js
CHANGED
|
@@ -167,7 +167,10 @@ export var Annotator = function Annotator(_ref) {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
_context.next = 4;
|
|
170
|
-
return onSave(
|
|
170
|
+
return onSave({
|
|
171
|
+
images: state.images,
|
|
172
|
+
albumMetadata: state.albumMetadata
|
|
173
|
+
});
|
|
171
174
|
|
|
172
175
|
case 4:
|
|
173
176
|
dispatchToReducer({
|
|
@@ -211,7 +214,7 @@ export var Annotator = function Annotator(_ref) {
|
|
|
211
214
|
|
|
212
215
|
|
|
213
216
|
useEffect(function () {
|
|
214
|
-
if (!state.lastAction || !["BEGIN_BOX_TRANSFORM", "CHANGE_REGION", "DELETE_REGION", "UPDATE_METADATA", "SELECT_CLASSIFICATION"].includes(state.lastAction.type)) {
|
|
217
|
+
if (!state.lastAction || !["BEGIN_BOX_TRANSFORM", "CHANGE_REGION", "DELETE_REGION", "DELETE_SELECTED_REGION", "UPDATE_METADATA", "SELECT_CLASSIFICATION"].includes(state.lastAction.type)) {
|
|
215
218
|
return;
|
|
216
219
|
}
|
|
217
220
|
|