Skip to content

Commit

Permalink
fix overload error
Browse files Browse the repository at this point in the history
  • Loading branch information
niczyja committed Jan 26, 2024
1 parent 3934273 commit de91cb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/note_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ export class ArcSidebarNoteView extends ItemView {
return [];

const cache = this.plugin.app.metadataCache.getFileCache(file);
const tags = cache?.tags === undefined ? [] : cache.tags!;
return []
.concat(cache?.frontmatter?.tags)
.concat(cache?.tags?.map((t) => t.tag.substring(1)))
.concat(tags.map((t) => t.tag.substring(1)))

Check failure on line 84 in src/note_view.ts

View workflow job for this annotation

GitHub Actions / build

No overload matches this call.
.filter((v, i, a) => a.indexOf(v) === i && (<string>v)?.startsWith('arc'));
}
}

0 comments on commit de91cb6

Please sign in to comment.