@contentful/field-editor-rich-text 3.1.6 → 3.1.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.
@@ -7115,11 +7115,7 @@ function sanitizeIncomingSlateDoc(nodes) {
7115
7115
  */
7116
7116
 
7117
7117
  var hasContent = function hasContent(doc) {
7118
- if (!doc) {
7119
- return false;
7120
- }
7121
-
7122
- return doc.content.length > 0;
7118
+ return ((doc == null ? void 0 : doc.content) || []).length > 0;
7123
7119
  };
7124
7120
  /*
7125
7121
  Plate api doesn't allow to modify (easily) the editor value programmatically