From fbf1d8e91690a2c1f7111d1a50676ac947dc696d Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 24 Aug 2021 15:59:12 +0200 Subject: [PATCH] more dir path fixes --- src/components/FileBrowser.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/FileBrowser.tsx b/src/components/FileBrowser.tsx index 84f6d84..a1c0349 100644 --- a/src/components/FileBrowser.tsx +++ b/src/components/FileBrowser.tsx @@ -113,12 +113,12 @@ const FileBrowser: React.FC = () => { >
{ - setPath(newPath) + setPath(normalizeDirPath(newPath)) }}/>
{ - const fullPath = normalizeDirPath(normalizeDirPath(path) + dirName) + const fullPath = normalizeDirPath(path + dirName) await createDirMutation({variables:{path: fullPath}}) refetchDir() }} @@ -150,7 +150,7 @@ const FileBrowser: React.FC = () => { key={v?.id} dir={v} onClick={(dir)=>{ - setPath(dir.id) + setPath(normalizeDirPath(dir.id)) }} onContextMenu={(e)=>{ openDirContextMenu(e,v.id)