diff --git a/apps/app/src/editor/repair.ts b/apps/app/src/editor/repair.ts index 296e7119..a9736147 100644 --- a/apps/app/src/editor/repair.ts +++ b/apps/app/src/editor/repair.ts @@ -308,8 +308,10 @@ export function applyRepair( ): RepairResult { const store = useEditorStore.getState() const before = store.previewState - const live = before !== null && store.session === offer.session - const batch = live ? repairBatch(offer, before, geometries) : null + const batch = + before && store.session === offer.session + ? repairBatch(offer, before, geometries) + : null if (!before || !batch) return blockedResult(context) const accept = repairAccept(before, offer.assetId, batch.ids) const outcome = store.commitBatch(batch.commands, { accept })