diff --git a/src/tracker.ts b/src/tracker.ts index 3360412..bc28274 100644 --- a/src/tracker.ts +++ b/src/tracker.ts @@ -10,7 +10,7 @@ export interface Entry { startTime: string; endTime: string; subEntries: Entry[]; - collapsed?: number; + collapsed?: boolean; } export async function saveTracker(tracker: Tracker, app: App, fileName: string, section: MarkdownSectionInformation): Promise { @@ -328,7 +328,7 @@ function addEditableTableRow(tracker: Tracker, entry: Entry, table: HTMLTableEle if (entry.collapsed) { delete entry.collapsed; } else { - entry.collapsed = 1; + entry.collapsed = true; } await saveTracker(tracker, this.app, getFile(), getSectionInfo()); });