Skip to content

A self-hosted media server and file management system

fix: library folder sort does not handle updated_at date column

aminnausined26f6f9316d
diff --git a/resources/js/components/dashboard/DashboardLibraries.vue b/resources/js/components/dashboard/DashboardLibraries.vue
index f5a6eb14..e360cb2a 100644
--- a/resources/js/components/dashboard/DashboardLibraries.vue
+++ b/resources/js/components/dashboard/DashboardLibraries.vue
@@ -120,7 +120,7 @@ const handleSort = async (column: keyof CategoryResource = 'created_at', dir: -1
};
const handleFolderSort = async (column: keyof FolderResource = 'created_at', dir: -1 | 1 = 1) => {
- const tempList = [...stateLibraryFolders.value].sort(sortObject<FolderResource>(column, dir, ['created_at']));
+ const tempList = [...stateLibraryFolders.value].sort(sortObject<FolderResource>(column, dir, ['created_at', 'updated_at']));
stateLibraryFolders.value = tempList;
return tempList;
};