Skip to content

Commit

Permalink
avoid triggering type-checking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chauff committed Nov 1, 2024
1 parent 632fefa commit 5963971
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 @@ -207,7 +207,7 @@ class urlModal extends Modal {
return Promise.resolve("");
}

const availableTags = this.app.metadataCache.getTags()//not part of .d.ts but works for now
const availableTags = (this.app.metadataCache as any).getTags();
const tagsString = Object.keys(availableTags).join(' ');

const tag_prompt = `${prompts.get('generateTags')}\n\nAbstract: ${abstract}\n\nAvailable hashtags: ${tagsString}`;
Expand Down

0 comments on commit 5963971

Please sign in to comment.