Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmunoz committed Feb 17, 2025
1 parent 3a8e1d3 commit abf2530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions suggesters/FileSuggester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class TemplateFileSuggest extends TextInputSuggest<TFile> {
let templateFiles =
this.app.vault.getFolderByPath(this.rootFolder)?.children
.filter(f => f instanceof TFile)
.map(f => f as TFile)
.filter(f => f.extension === "md")
.filter(f => f.path.toLowerCase().contains(input_str.toLowerCase()));
//.map(f => f.path)
Expand Down
2 changes: 1 addition & 1 deletion suggesters/suggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export abstract class TextInputSuggest<T> implements ISuggestOwner<T> {

if (suggestions.length > 0) {
this.suggest.setSuggestions(suggestions);
this.open(this.app.dom.appContainerEl, this.inputEl);
this.open(this.app.workspace.containerEl, this.inputEl);
} else {
this.close();
}
Expand Down

0 comments on commit abf2530

Please sign in to comment.