From a689e0ff519c96d2d730128d5ecb9564b09b84f6 Mon Sep 17 00:00:00 2001 From: Xu Quan Date: Wed, 5 Mar 2025 15:53:33 +0800 Subject: [PATCH] fix: fix wrong text --- src/components/FileActions/SortFiles.tsx | 4 ++-- src/store.ts | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/FileActions/SortFiles.tsx b/src/components/FileActions/SortFiles.tsx index 3303985..ec9fd77 100644 --- a/src/components/FileActions/SortFiles.tsx +++ b/src/components/FileActions/SortFiles.tsx @@ -11,8 +11,8 @@ type FileSortRuleItem = { }; type FileSortRuleGroup = FileSortRuleItem[]; const FileSortByNameRules: FileSortRuleGroup = [ - { text: "Folder name(A to Z)", rule: "FileNameAscending" }, - { text: "Folder name(Z to A)", rule: "FileNameDescending" }, + { text: "File name(A to Z)", rule: "FileNameAscending" }, + { text: "File name(Z to A)", rule: "FileNameDescending" }, ]; const FileSortByModifiedTimeRules: FileSortRuleGroup = [ { diff --git a/src/store.ts b/src/store.ts index 9bd9050..80d71c1 100644 --- a/src/store.ts +++ b/src/store.ts @@ -267,8 +267,6 @@ export const createFileTreeStore = (plugin: FolderFileSplitterPlugin) => await get().saveData({ [FFS_EXPANDED_FOLDER_PATHS_KEY]: JSON.stringify(folderPaths), }); - const data = await plugin.loadData(); - console.log(data); }, restoreExpandedFolderPaths: async () => { const lastExpandedFolderPaths = await get().getData(