@contentful/field-editor-rich-text 2.0.0-next.30 → 2.0.0-next.31

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.
@@ -6105,18 +6105,20 @@ var Table = function Table(props) {
6105
6105
  */
6106
6106
 
6107
6107
  var trimUnnecessaryTableWrapper = function trimUnnecessaryTableWrapper(node) {
6108
+ var _node$children, _row$children;
6109
+
6108
6110
  if (!Element.isElement(node)) {
6109
6111
  return [node];
6110
6112
  } // must be a table with a single row
6111
6113
 
6112
6114
 
6113
- if (node.type !== BLOCKS.TABLE || node.children.length !== 1) {
6115
+ if (node.type !== BLOCKS.TABLE || ((_node$children = node.children) == null ? void 0 : _node$children.length) !== 1) {
6114
6116
  return [node];
6115
6117
  }
6116
6118
 
6117
6119
  var row = node.children[0]; // the row must contain a single cell
6118
6120
 
6119
- if (row.children.length !== 1) {
6121
+ if ((row == null ? void 0 : (_row$children = row.children) == null ? void 0 : _row$children.length) !== 1) {
6120
6122
  return [node];
6121
6123
  }
6122
6124