fix: parent dir navigation jumping to root in file browser

This commit is contained in:
Linus Rath
2026-05-21 17:27:49 +02:00
parent b48eef2189
commit 15a67a14b3
+1 -1
View File
@@ -458,7 +458,7 @@ export function FileBrowser({
const segments = currentPath.split('/').filter(Boolean);
segments.pop();
const parentPath = segments.length === 0 ? '/' : '/' + segments.join('/');
onNavigate(parentPath, null);
onNavigate(parentPath);
}, [currentPath, onNavigate]);
const handleResourceClick = (resource: FileResource, e: React.MouseEvent) => {