mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #43174 from nextcloud/fix/files--do-not-open-folder-file-from-fileid-on-load
This commit is contained in:
commit
05dda07481
3 changed files with 5 additions and 5 deletions
|
|
@ -73,7 +73,7 @@ import type { Node as NcNode } from '@nextcloud/files'
|
|||
import type { PropType } from 'vue'
|
||||
import type { UserConfig } from '../types'
|
||||
|
||||
import { getFileListHeaders, Folder, View, getFileActions } from '@nextcloud/files'
|
||||
import { getFileListHeaders, Folder, View, getFileActions, FileType } from '@nextcloud/files'
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
import { loadState } from '@nextcloud/initial-state'
|
||||
import { translate as t, translatePlural as n } from '@nextcloud/l10n'
|
||||
|
|
@ -248,7 +248,7 @@ export default defineComponent({
|
|||
}
|
||||
|
||||
const node = this.nodes.find(n => n.fileid === openFileInfo.id) as NcNode
|
||||
if (node === undefined) {
|
||||
if (node === undefined || node.type === FileType.Folder) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue