UBERF-10507 Navigate to drive instead of drive:ids:Root folder (#8853)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2025-05-06 16:08:53 +07:00 committed by GitHub
parent 3144978643
commit 232eae5448
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,7 +131,7 @@ export async function generateFileLocation (loc: Location, id: Ref<File>): Promi
return {
loc: {
path:
doc.parent !== undefined
doc.parent !== undefined && doc.parent !== drive.ids.Root
? [appComponent, workspace, driveId, 'folder', doc.parent]
: [appComponent, workspace, driveId],
fragment: getPanelFragment(doc)