Skip to content

Commit

Permalink
Merge pull request #1165 from nextcloud-libraries/fix/filepicker-path
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv committed Jan 10, 2024
2 parents c95f49e + 3ba5941 commit 9f68d65
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 9f68d65

Please sign in to comment.