@dreamcommerce/aurora 2.27.1-8 → 2.27.1-9

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.
@@ -178,8 +178,8 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
178
178
  };
179
179
  }();
180
180
 
181
- if (!initialImageFile.current) return;
182
- setFileFromUrl(initialImageFile.current);
181
+ if (!initialFile) return;
182
+ setFileFromUrl(initialFile);
183
183
  return function () {
184
184
  var _pendingRequestRef$cu;
185
185
 
@@ -213,7 +213,7 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
213
213
  onError: onError,
214
214
  errors: errors,
215
215
  allowedExtensions: allowedExtensions,
216
- initialFile: initialImageFile.current,
216
+ initialFile: initialFile,
217
217
  onImageSizeUpdated: onImageSizeUpdated,
218
218
  topButtons: !!ImageEditor && imageExtenstion !== 'svg' && /*#__PURE__*/React__default['default'].createElement("button", {
219
219
  className: main_module['default'][css_classes['default'].imagePickerEditButton],
@@ -170,8 +170,8 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
170
170
  };
171
171
  }();
172
172
 
173
- if (!initialImageFile.current) return;
174
- setFileFromUrl(initialImageFile.current);
173
+ if (!initialFile) return;
174
+ setFileFromUrl(initialFile);
175
175
  return function () {
176
176
  var _pendingRequestRef$cu;
177
177
 
@@ -205,7 +205,7 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
205
205
  onError: onError,
206
206
  errors: errors,
207
207
  allowedExtensions: allowedExtensions,
208
- initialFile: initialImageFile.current,
208
+ initialFile: initialFile,
209
209
  onImageSizeUpdated: onImageSizeUpdated,
210
210
  topButtons: !!ImageEditor && imageExtenstion !== 'svg' && /*#__PURE__*/React.createElement("button", {
211
211
  className: styles[CSS_CLASSES.imagePickerEditButton],
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "2.27.1-8",
5
+ "version": "2.27.1-9",
6
6
  "description": "aurora",
7
7
  "author": "k0ssak",
8
8
  "license": "MIT",