Skip to content

Commit

Permalink
fix: missing function usage
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminshafii committed Nov 9, 2024
1 parent 9256331 commit 12405f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,7 @@ export default class FileOrganizer extends Plugin {
? this.settings.customFolderInstructions
: undefined;

const folders = this.getAllNonFo2kFolders();
const folders = this.getAllUserFolders();
const response = await fetch(`${this.getServerUrl()}/api/folders/v2`, {
method: "POST",
headers: {
Expand Down Expand Up @@ -1616,7 +1616,7 @@ export default class FileOrganizer extends Plugin {
}
const currentFolder =
this.app.vault.getAbstractFileByPath(filePath)?.parent?.path || "";
const filteredFolders = this.getAllNonFo2kFolders()
const filteredFolders = this.getAllUserFolders()
.filter(folder => folder !== currentFolder)

// if this.settings.ignoreFolders has one or more folder specified, filter them out including subfolders
Expand Down Expand Up @@ -1661,7 +1661,7 @@ export default class FileOrganizer extends Plugin {
}
}
async getNewFolders(content: string, filePath: string): Promise<string[]> {
const uniqueFolders = await this.getAllNonFo2kFolders();
const uniqueFolders = await this.getAllUserFolders();
if (this.settings.ignoreFolders.includes("*")) {
return [this.settings.defaultDestinationPath];
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/views/organizer/folders/box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const SimilarFolderBox: React.FC<SimilarFolderBoxProps> = ({
);

// Get all valid folders
const validFolders = plugin.getAllNonFo2kFolders();
const validFolders = plugin.getAllUserFolders();

// Filter suggestions to only include existing folders or new folders
const filteredSuggestions = folderSuggestions.filter(suggestion =>
Expand Down

0 comments on commit 12405f2

Please sign in to comment.