@tldraw/editor 3.16.0-canary.b5a35402e79e → 3.16.0-canary.cb4562244982

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-cjs/index.js CHANGED
@@ -371,7 +371,7 @@ function debugEnableLicensing() {
371
371
  }
372
372
  (0, import_utils.registerTldrawLibraryVersion)(
373
373
  "@tldraw/editor",
374
- "3.16.0-canary.b5a35402e79e",
374
+ "3.16.0-canary.cb4562244982",
375
375
  "cjs"
376
376
  );
377
377
  //# sourceMappingURL=index.js.map
@@ -4748,7 +4748,16 @@ class Editor extends (_a = import_eventemitter3.default, _getIsShapeHiddenCache_
4748
4748
  }
4749
4749
  this.createShapes(shapesToCreate);
4750
4750
  this.createBindings(bindingsToCreate);
4751
- this.setSelectedShapes((0, import_utils.compact)(ids.map((id) => shapeIds.get(id))));
4751
+ this.setSelectedShapes(
4752
+ (0, import_utils.compact)(
4753
+ ids.map((oldId) => {
4754
+ const newId = shapeIds.get(oldId);
4755
+ if (!newId) return null;
4756
+ if (!this.getShape(newId)) return null;
4757
+ return newId;
4758
+ })
4759
+ )
4760
+ );
4752
4761
  if (offset !== void 0) {
4753
4762
  const selectionPageBounds = this.getSelectionPageBounds();
4754
4763
  const viewportPageBounds = this.getViewportPageBounds();