@contentful/field-editor-reference 4.2.0 → 4.2.1
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/CHANGELOG.md +6 -0
- package/dist/field-editor-reference.cjs.development.js +14 -4
- package/dist/field-editor-reference.cjs.development.js.map +1 -1
- package/dist/field-editor-reference.cjs.production.min.js +1 -1
- package/dist/field-editor-reference.cjs.production.min.js.map +1 -1
- package/dist/field-editor-reference.esm.js +14 -4
- package/dist/field-editor-reference.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -2307,7 +2307,7 @@ function useEditorPermissions(props) {
|
|
|
2307
2307
|
switch (_context2.prev = _context2.next) {
|
|
2308
2308
|
case 0:
|
|
2309
2309
|
if (!(entityType === 'Asset')) {
|
|
2310
|
-
_context2.next =
|
|
2310
|
+
_context2.next = 8;
|
|
2311
2311
|
break;
|
|
2312
2312
|
}
|
|
2313
2313
|
|
|
@@ -2315,15 +2315,25 @@ function useEditorPermissions(props) {
|
|
|
2315
2315
|
return canPerformAction('read', 'Asset');
|
|
2316
2316
|
|
|
2317
2317
|
case 3:
|
|
2318
|
-
|
|
2318
|
+
_context2.t0 = _context2.sent;
|
|
2319
|
+
|
|
2320
|
+
if (_context2.t0) {
|
|
2321
|
+
_context2.next = 6;
|
|
2322
|
+
break;
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
_context2.t0 = true;
|
|
2326
|
+
|
|
2327
|
+
case 6:
|
|
2328
|
+
canRead = _context2.t0;
|
|
2319
2329
|
setCanLinkEntity(canRead);
|
|
2320
2330
|
|
|
2321
|
-
case
|
|
2331
|
+
case 8:
|
|
2322
2332
|
if (entityType === 'Entry') {
|
|
2323
2333
|
setCanLinkEntity(readableContentTypes.length > 0);
|
|
2324
2334
|
}
|
|
2325
2335
|
|
|
2326
|
-
case
|
|
2336
|
+
case 9:
|
|
2327
2337
|
case "end":
|
|
2328
2338
|
return _context2.stop();
|
|
2329
2339
|
}
|