@searpent/react-image-annotate 2.0.36 → 2.0.37
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.
|
@@ -1172,7 +1172,7 @@ export default (function (state, action) {
|
|
|
1172
1172
|
|
|
1173
1173
|
if (metadataIndex < 0) {
|
|
1174
1174
|
console.error("can't find metadata by key \"".concat(name, "\""));
|
|
1175
|
-
return;
|
|
1175
|
+
return state;
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
1178
|
return setIn(state, ["albumMetadata", metadataIndex], {
|
|
@@ -1183,7 +1183,7 @@ export default (function (state, action) {
|
|
|
1183
1183
|
var _state$images$_imageI3, _state$images$_imageI4;
|
|
1184
1184
|
|
|
1185
1185
|
// update metadata of article
|
|
1186
|
-
if (
|
|
1186
|
+
if (_groupId2) {
|
|
1187
1187
|
var _state$images$_imageI, _state$images$_imageI2;
|
|
1188
1188
|
|
|
1189
1189
|
var articleMetadataRegionIdx = (_state$images$_imageI = state.images[_imageIndex]) === null || _state$images$_imageI === void 0 ? void 0 : _state$images$_imageI.regions.findIndex(function (r) {
|