diff options
author | Grigorii K. Shartsev <me@shgk.me> | 2024-01-27 20:18:49 +0100 |
---|---|---|
committer | Grigorii K. Shartsev <me@shgk.me> | 2024-02-02 09:54:55 +0100 |
commit | 455d24bcfeaccc78b67ccfc8f0285761b233d202 (patch) | |
tree | 0a7350ae330cdfb225171fe7348c94c9ada9b0e9 | |
parent | 63f327c7ba35e189d2f9e05a16a3fd6526afe678 (diff) | |
download | nextcloud-server-455d24bcfeaccc78b67ccfc8f0285761b233d202.tar.gz nextcloud-server-455d24bcfeaccc78b67ccfc8f0285761b233d202.zip |
fix(files): do not open file by id on load for folders
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
-rw-r--r-- | apps/files/src/components/FilesListVirtual.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/src/components/FilesListVirtual.vue b/apps/files/src/components/FilesListVirtual.vue index 991964b7929..afb2dbd888a 100644 --- a/apps/files/src/components/FilesListVirtual.vue +++ b/apps/files/src/components/FilesListVirtual.vue @@ -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 } |