Skip to content

Commit

Permalink
Remove var
Browse files Browse the repository at this point in the history
  • Loading branch information
kikijiki authored Jan 26, 2025
1 parent 7187a38 commit fd51468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class HabitTrackerView extends ItemView {
private createToggleHandler(file: TFile, tag: string) {
return async (value: boolean) => {
await this.app.fileManager.processFrontMatter(file, (frontmatter) => {
var tags = frontmatter.tags || [];
let tags = frontmatter.tags || [];
if (value && !tags.includes(tag)) {
tags.push(tag);
} else if (!value && tags.includes(tag)) {
Expand Down

0 comments on commit fd51468

Please sign in to comment.