From c587f8389016084f66155b48e77956228f9420cb Mon Sep 17 00:00:00 2001 From: James Tan Date: Tue, 16 Jul 2024 21:13:25 -0500 Subject: [PATCH] fix: Change collapsed field from number to boolean --- src/tracker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); });