@contentful/field-editor-reference 5.26.2 → 5.26.3

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.
@@ -433,7 +433,7 @@ function useEntity(entityType, entityId, options) {
433
433
  });
434
434
  return {
435
435
  status,
436
- data
436
+ data: status === 'error' ? 'failed' : data
437
437
  };
438
438
  }
439
439
  function useResource(resourceType, urn, options) {
@@ -354,7 +354,7 @@ export function useEntity(entityType, entityId, options) {
354
354
  });
355
355
  return {
356
356
  status,
357
- data
357
+ data: status === 'error' ? 'failed' : data
358
358
  };
359
359
  }
360
360
  export function useResource(resourceType, urn, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-reference",
3
- "version": "5.26.2",
3
+ "version": "5.26.3",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "registry": "https://npm.pkg.github.com/"
69
69
  },
70
- "gitHead": "129510a558258ae7eb0c53e7845868048a465ca7"
70
+ "gitHead": "cdfbb3bd28e968fcc22de28c67e8603aa99a71ad"
71
71
  }