diff --git a/apps/files/src/components/FilesListTableFooter.vue b/apps/files/src/components/FilesListTableFooter.vue index 9580de2991990..f833ce681332b 100644 --- a/apps/files/src/components/FilesListTableFooter.vue +++ b/apps/files/src/components/FilesListTableFooter.vue @@ -64,6 +64,7 @@ import Vue from 'vue' import { useFilesStore } from '../store/files.ts' import { usePathsStore } from '../store/paths.ts' +import { useRouteParameters } from '../composables/useRouteParameters.ts' export default Vue.extend({ name: 'FilesListTableFooter', @@ -97,9 +98,11 @@ export default Vue.extend({ setup() { const pathsStore = usePathsStore() const filesStore = useFilesStore() + const { directory } = useRouteParameters() return { filesStore, pathsStore, + directory, } }, @@ -118,7 +121,7 @@ export default Vue.extend({ return } - if (this.dir === '/') { + if (this.directory === '/') { return this.filesStore.getRoot(this.currentView.id) } const fileId = this.pathsStore.getPath(this.currentView.id, this.dir) @@ -160,7 +163,7 @@ export default Vue.extend({