diff --git a/src/main/frontend/fs/sync.cljs b/src/main/frontend/fs/sync.cljs index 9e059f4b25..a6b1bcb55c 100644 --- a/src/main/frontend/fs/sync.cljs +++ b/src/main/frontend/fs/sync.cljs @@ -166,7 +166,7 @@ (defn- get-monitor-dirs [] - (into #{#"^assets/" #"^journals/" #"^logseq/" #"^pages/" #"^draws/"} + (into #{#"^assets/" #"^journals/" #"^logseq/" #"^pages/" #"^draws/" #"^whiteboards/"} (map #(re-pattern (str "^" % "/"))) (:file-sync/monitor-dirs (state/get-config)))) diff --git a/tldraw/packages/core/src/lib/TLHistory.ts b/tldraw/packages/core/src/lib/TLHistory.ts index 287b60eb2a..8c70de2002 100644 --- a/tldraw/packages/core/src/lib/TLHistory.ts +++ b/tldraw/packages/core/src/lib/TLHistory.ts @@ -1,6 +1,6 @@ import { computed, makeObservable, transaction } from 'mobx' import type { TLEventMap } from '../types' -import { dedupe, deepEqual } from '../utils' +import { deepEqual } from '../utils' import type { TLShape } from './shapes' import type { TLApp, TLDocumentModel } from './TLApp' import { TLPage } from './TLPage' @@ -94,11 +94,11 @@ export class TLHistory { transaction(() => { - const { selectedIds, pages } = snapshot + const { pages } = snapshot const wasPaused = this.isPaused this.pause() - const newSelectedIds = dedupe([...this.app.selectedIds, ...selectedIds]) + const newSelectedIds = [...this.app.selectedIds] try { const pagesMap = new Map(this.app.pages) diff --git a/tldraw/packages/core/src/lib/TLPage/TLPage.ts b/tldraw/packages/core/src/lib/TLPage/TLPage.ts index 20071a663b..94b6875a76 100644 --- a/tldraw/packages/core/src/lib/TLPage/TLPage.ts +++ b/tldraw/packages/core/src/lib/TLPage/TLPage.ts @@ -70,7 +70,6 @@ export class TLPage toJS(s)), bindings: deepCopy(this.bindings), nonce: this.nonce, - selectedIds: deepCopy(this.app.selectedIds), } }