From 8f3c272491dd270b67c6ee664c99534326e2b592 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Wed, 10 Jan 2024 15:46:50 +0100 Subject: [PATCH] fix(FilePicker): Use `Node::path` for current path fixing an clicking favorite folders Signed-off-by: Ferdinand Thiessen --- lib/components/FilePicker/FileList.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/components/FilePicker/FileList.vue b/lib/components/FilePicker/FileList.vue index 451509208..402784475 100644 --- a/lib/components/FilePicker/FileList.vue +++ b/lib/components/FilePicker/FileList.vue @@ -79,7 +79,6 @@ import type { FileListViews } from '../../composables/filesSettings' import { FileType } from '@nextcloud/files' import { getCanonicalLocale } from '@nextcloud/l10n' import { NcButton, NcCheckboxRadioSwitch } from '@nextcloud/vue' -import { join } from 'path' import { computed, nextTick, onMounted, onUnmounted, ref } from 'vue' import { useFilesSettings, useFilesViews } from '../../composables/filesSettings' import { t } from '../../utils/l10n' @@ -210,7 +209,7 @@ function onNodeSelected(file: Node) { * @param dir The directory that is entered */ function onChangeDirectory(dir: Node) { - emit('update:path', join(props.path, dir.basename)) + emit('update:path', dir.path) } /**