@contentful/field-editor-reference 5.30.7 → 5.30.8

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.
@@ -107,7 +107,7 @@ function SingleReferenceEditor(props) {
107
107
  return _react.createElement(Editor, {
108
108
  ...props,
109
109
  key: `${externalReset}-reference`,
110
- entityId: value ? value.sys.id : '',
110
+ entityId: value ? value?.sys?.id : '',
111
111
  isDisabled: disabled,
112
112
  setValue: setValue,
113
113
  allContentTypes: allContentTypes
@@ -57,7 +57,7 @@ export function SingleReferenceEditor(props) {
57
57
  return React.createElement(Editor, {
58
58
  ...props,
59
59
  key: `${externalReset}-reference`,
60
- entityId: value ? value.sys.id : '',
60
+ entityId: value ? value?.sys?.id : '',
61
61
  isDisabled: disabled,
62
62
  setValue: setValue,
63
63
  allContentTypes: allContentTypes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-reference",
3
- "version": "5.30.7",
3
+ "version": "5.30.8",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "registry": "https://npm.pkg.github.com/"
66
66
  },
67
- "gitHead": "bf075c88a35535dd9ac930e40b49036beac98d90"
67
+ "gitHead": "5fe891575a72781c1166b26d69506e9d100e5c4f"
68
68
  }