oa-componentbook 0.18.378 → 0.18.379

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.
@@ -212,7 +212,7 @@ function DocumentUpload(_ref) {
212
212
  }
213
213
 
214
214
  // If file is done or error, show confirmation modal
215
- if ((file === null || file === void 0 ? void 0 : file.status) === 'done' || (file === null || file === void 0 ? void 0 : file.status) === 'error') {
215
+ if ((file === null || file === void 0 ? void 0 : file.status) === 'done' || (file === null || file === void 0 ? void 0 : file.status) === 'error' || file !== null && file !== void 0 && file.url) {
216
216
  setSelectedFile(file);
217
217
  setDeleteConfirmation(true);
218
218
  resolve(false); // Prevent removal until confirmed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oa-componentbook",
3
- "version": "0.18.378",
3
+ "version": "0.18.379",
4
4
  "private": false,
5
5
  "description": "Reusable components",
6
6
  "main": "build/index.js",