fix: Change collapsed field from number to boolean

This commit is contained in:
James Tan 2024-07-16 21:13:25 -05:00
parent f308679bd2
commit c587f83890

View file

@ -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<void> {
@ -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());
});