Skip to content

Build your personal knowledge base with Trilium Notes

custom task states: handle archived custom task states

Adorian Doran3f7a8b67e519
diff --git a/apps/client/src/widgets/type_widgets/text/config.ts b/apps/client/src/widgets/type_widgets/text/config.ts
index 2d81b1fb3f..2f7ec36454 100644
--- a/apps/client/src/widgets/type_widgets/text/config.ts
+++ b/apps/client/src/widgets/type_widgets/text/config.ts
@@ -261,7 +261,8 @@ async function fetchTaskStates(): Promise<TaskStateDef[]> {
markdownSymbol: note.getLabelValue("markdownSymbol") ?? "",
checkboxValue: note.getLabelValue("checkboxValue") === "true",
color: note.getLabelValue("color") ?? "",
- icon: note.getLabelValue("iconClass") ?? ""
+ icon: note.getLabelValue("iconClass") ?? "",
+ archived: note.isArchived
};
})
.filter((state): state is TaskStateDef => state !== null);