@superinterface/react 2.17.4 → 2.17.5

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/dist/index.js CHANGED
@@ -1360,12 +1360,13 @@ var remarkAnnotation = function(param) {
1360
1360
  return function() {
1361
1361
  return function(tree) {
1362
1362
  flatMap(tree, function(node) {
1363
+ var _content_text_annotations, _content_text;
1363
1364
  if (node.type !== "text") {
1364
1365
  return [
1365
1366
  node
1366
1367
  ];
1367
1368
  }
1368
- if (!content.text.annotations.length) {
1369
+ if (!((_content_text = content.text) === null || _content_text === void 0 ? void 0 : (_content_text_annotations = _content_text.annotations) === null || _content_text_annotations === void 0 ? void 0 : _content_text_annotations.length)) {
1369
1370
  return [
1370
1371
  node
1371
1372
  ];