Skip to content

Commit

Permalink
fix(FilePicker): Use Node::path for current path fixing an clicking…
Browse files Browse the repository at this point in the history
… favorite folders

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jan 10, 2024
1 parent 058d509 commit 8f3c272
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/components/FilePicker/FileList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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)
}
/**
Expand Down

0 comments on commit 8f3c272

Please sign in to comment.