feat(views/board): allow changing group by attribute

This commit is contained in:
Elian Doran
2025-07-21 14:43:54 +03:00
parent 86911100df
commit 08a93d81d7

View File

@@ -111,7 +111,7 @@ export default class BoardApi {
}
static async build(parentNote: FNote, viewStorage: ViewModeStorage<BoardData>) {
const statusAttribute = "status"; // This should match the attribute used for grouping
const statusAttribute = parentNote.getLabelValue("board:groupBy") ?? "status";
let persistedData = await viewStorage.restore() ?? {};
const { byColumn, newPersistedData } = await getBoardData(parentNote, statusAttribute, persistedData);