diff --git a/src/core/store.ts b/src/core/store.ts index e20c0a8..dc26655 100644 --- a/src/core/store.ts +++ b/src/core/store.ts @@ -639,7 +639,7 @@ function delElement(id: string) { const el = findElement(id) const deletedElement = el ? clone(el) : undefined execOp({ type: 'del_element', slideIdx: state.currentIndex, elementId: id, deletedElement, clientId: CLIENT_ID, timestamp: Date.now() }) - if (state.selectedId === id) state.selectedId = null; state.selectedIds = [] + if (state.selectedId === id) { state.selectedId = null; state.selectedIds = [] } } function moveElementZ(id: string, dir: number) {