mirror of
https://github.com/Ellpeck/ObsidianSimpleTimeTracker.git
synced 2024-11-28 03:58:34 +01:00
fix: Change collapsed field from number to boolean
This commit is contained in:
parent
f308679bd2
commit
c587f83890
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue