mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 07:38:53 +02:00
refactor(views/board): use in-memory model
This commit is contained in:
parent
b3777e6900
commit
a88b067081
@ -138,8 +138,9 @@ export default class BoardApi {
|
|||||||
const statusAttribute = parentNote.getLabelValue("board:groupBy") ?? "status";
|
const statusAttribute = parentNote.getLabelValue("board:groupBy") ?? "status";
|
||||||
this._statusAttribute = statusAttribute;
|
this._statusAttribute = statusAttribute;
|
||||||
|
|
||||||
let persistedData = await this.viewStorage.restore() ?? {};
|
// Use the current in-memory persisted data instead of restoring from storage
|
||||||
const { byColumn, newPersistedData } = await getBoardData(parentNote, statusAttribute, persistedData);
|
// This ensures we don't lose recent updates like column renames
|
||||||
|
const { byColumn, newPersistedData } = await getBoardData(parentNote, statusAttribute, this.persistedData);
|
||||||
|
|
||||||
// Update internal state
|
// Update internal state
|
||||||
this.byColumn = byColumn;
|
this.byColumn = byColumn;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user