aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/actions
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-09-24 12:34:15 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-09-27 08:29:50 +0200
commit8e9e222105455297fa7dda8abda8af2acf532c55 (patch)
treec61a4b66488a5ad3c6346fde4a190e5c2d2aa9c2 /apps/files/src/actions
parent912b18b1fc9fd90bfc78f942cd2043a5a0145e69 (diff)
downloadnextcloud-server-8e9e222105455297fa7dda8abda8af2acf532c55.tar.gz
nextcloud-server-8e9e222105455297fa7dda8abda8af2acf532c55.zip
fix(files): open folder fileid while navigating without opening the sidebar
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/actions')
-rw-r--r--apps/files/src/actions/openFolderAction.spec.ts2
-rw-r--r--apps/files/src/actions/openFolderAction.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/src/actions/openFolderAction.spec.ts b/apps/files/src/actions/openFolderAction.spec.ts
index 98497a22fdc..a7f31db94ab 100644
--- a/apps/files/src/actions/openFolderAction.spec.ts
+++ b/apps/files/src/actions/openFolderAction.spec.ts
@@ -131,7 +131,7 @@ describe('Open folder action execute tests', () => {
// Silent action
expect(exec).toBe(null)
expect(goToRouteMock).toBeCalledTimes(1)
- expect(goToRouteMock).toBeCalledWith(null, { fileid: undefined, view: 'files' }, { dir: '/FooBar' })
+ expect(goToRouteMock).toBeCalledWith(null, { fileid: 1, view: 'files' }, { dir: '/FooBar' })
})
test('Open folder fails without node', async () => {
diff --git a/apps/files/src/actions/openFolderAction.ts b/apps/files/src/actions/openFolderAction.ts
index f802ea4ad6d..e6d8c7f7edf 100644
--- a/apps/files/src/actions/openFolderAction.ts
+++ b/apps/files/src/actions/openFolderAction.ts
@@ -56,8 +56,8 @@ export const action = new FileAction({
window.OCP.Files.Router.goToRoute(
null,
- { view: view.id, fileid: undefined },
- { dir: join(dir, node.basename), fileid: undefined },
+ { view: view.id, fileid: node.fileid },
+ { dir: join(dir, node.basename) },
)
return null
},