fix: connection db error for insertion markers (#8109)

This commit is contained in:
Beka Westberg
2024-05-15 15:27:43 +00:00
committed by GitHub
parent 392a38bb2e
commit e2eba2879d

View File

@@ -154,6 +154,7 @@ export class InsertionMarkerPreviewer implements IConnectionPreviewer {
};
const originalOffsetInBlock = markerConn.getOffsetInBlock().clone();
renderManagement.finishQueuedRenders().then(() => {
if (marker.isDeadOrDying()) return;
eventUtils.disable();
try {
// Position so that the existing block doesn't move.