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)