mirror of
https://github.com/logseq/logseq.git
synced 2026-05-25 13:14:39 +00:00
fix: whiteboard is not being correctly persisted
This commit is contained in:
@@ -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))))
|
||||
|
||||
|
||||
@@ -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<S extends TLShape = TLShape, K extends TLEventMap = TLEve
|
||||
|
||||
deserialize = (snapshot: TLDocumentModel) => {
|
||||
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)
|
||||
|
||||
@@ -70,7 +70,6 @@ export class TLPage<S extends TLShape = TLShape, E extends TLEventMap = TLEventM
|
||||
.map(s => toJS(s)),
|
||||
bindings: deepCopy(this.bindings),
|
||||
nonce: this.nonce,
|
||||
selectedIds: deepCopy(this.app.selectedIds),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user