@searpent/react-image-annotate 2.0.43 → 2.0.45

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.
@@ -78,7 +78,8 @@ export var Annotator = function Annotator(_ref) {
78
78
  onSave = _ref.onSave,
79
79
  albumMetadata = _ref.albumMetadata,
80
80
  metadataConfigs = _ref.metadataConfigs,
81
- lockedImages = _ref.lockedImages;
81
+ _ref$lockedImages = _ref.lockedImages,
82
+ lockedImages = _ref$lockedImages === void 0 ? [] : _ref$lockedImages;
82
83
 
83
84
  if (typeof selectedImage === "string") {
84
85
  selectedImage = (images || []).findIndex(function (img) {
@@ -669,7 +669,7 @@ export default (function (state, action) {
669
669
  })) === null || _state4$images$state$3 === void 0 ? void 0 : _state4$images$state$3.groupId;
670
670
  var groupSelected = true;
671
671
 
672
- if (isNaN(groupId)) {
672
+ if (groupId === undefined) {
673
673
  groupId = nextGroupId();
674
674
  groupSelected = false;
675
675
  }
@@ -142,7 +142,7 @@ function PageSelector(_ref3) {
142
142
  },
143
143
  metadata: page.metadata,
144
144
  showMetadata: showMetadata,
145
- imageIndex: page.id,
145
+ imageIndex: idx,
146
146
  onMetadataChange: onMetadataChange,
147
147
  metadataConfigs: metadataConfigs
148
148
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searpent/react-image-annotate",
3
- "version": "2.0.43",
3
+ "version": "2.0.45",
4
4
  "dependencies": {
5
5
  "@editorjs/editorjs": "^2.25.0",
6
6
  "@editorjs/paragraph": "^2.8.0",