change handlermanager to use Map to prevent garbage

This commit is contained in:
marlon-erler
2026-04-13 20:27:18 +00:00
parent d71b3893a4
commit 79f4a26f23
11 changed files with 48 additions and 49 deletions
+1 -1
View File
@@ -175,7 +175,7 @@ export default class TaskPageViewModel extends ContextHost<string> {
this.selectedBoardId.subscribeSilent(this.updateContexts);
// handlers
boardsAndTasksModel.boardHandlerManager.addHandler(
boardsAndTasksModel.boardHandlerManager.setHandler("task-page" + this.chatViewModel.chatModel.id,
(boardInfoFileContent: BoardInfoFileContent) => {
this.showBoardInList(boardInfoFileContent);
this.updateBoardIndices();