@contrail/documents 1.3.26 → 1.3.27

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.
@@ -139,14 +139,11 @@ class DocumentElementFactory {
139
139
  const oldColumnId = element.columnIds[newTableElement.columnIds.indexOf(newChildElement.columnId)];
140
140
  oldChildId = (_a = elements.find(e => e.type === 'cell' && e.rowId === oldRowId && e.columnId === oldColumnId)) === null || _a === void 0 ? void 0 : _a.id;
141
141
  }
142
+ newChildElement.documentId = documentId;
143
+ newChildElement.specifiedId = newChildElement.id;
144
+ newInnerElements.push(newChildElement);
142
145
  if (oldChildId) {
143
- newChildElement.documentId = documentId;
144
- newChildElement.specifiedId = newChildElement.id;
145
146
  oldIdToNewId.set(oldChildId, newChildElement.id);
146
- newInnerElements.push(newChildElement);
147
- }
148
- else {
149
- newInnerElements.push(newChildElement);
150
147
  }
151
148
  });
152
149
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "1.3.26",
3
+ "version": "1.3.27",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",