From 7e6dc67abda65f90a6608b9f284883dc1f35a422 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 9f540ba9..83ce5024 100644 --- a/lib/components/FilePicker/FileList.vue +++ b/lib/components/FilePicker/FileList.vue @@ -76,7 +76,6 @@ import { FileType, type Node } from '@nextcloud/files' import { getCanonicalLocale } from '@nextcloud/l10n' import { NcButton, NcCheckboxRadioSwitch } from '@nextcloud/vue' -import { join } from 'path' import { t } from '../../utils/l10n' import { computed, nextTick, onMounted, onUnmounted, ref, type Ref } from 'vue' @@ -184,7 +183,7 @@ function onNodeSelected(file: Node) { } function onChangeDirectory(dir: Node) { - emit('update:path', join(props.path, dir.basename)) + emit('update:path', dir.path) } /**