@fluidframework/merge-tree 2.0.0-internal.8.0.3 → 2.0.0-internal.8.0.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.
@@ -929,7 +929,12 @@ class MergeTree {
929
929
  }
930
930
  // TODO: error checking
931
931
  getMarkerFromId(id) {
932
- return this.idToMarker.get(id);
932
+ const marker = this.idToMarker.get(id);
933
+ return marker === undefined ||
934
+ isRemoved(marker) ||
935
+ (isMoved(marker) && marker.moveDst === undefined)
936
+ ? undefined
937
+ : marker;
933
938
  }
934
939
  /**
935
940
  * Given a position specified relative to a marker id, lookup the marker