fix: frontend: error on folders with % in name https://github.com/rejetto/hfs/issues/113
Massimo Melina committed
Feb 22, 2023 at 07:09 UTC
9cb77ae60995a7731f367434a65b79aa6a526731
1 file changed
+1
-1
frontend/src/useFetchList.ts
+1
-1
@@ -34,7 +34,7 @@ export default function useFetchList() {
34
return
35
}
36
37
- const baseParams = { path:desiredPath, search, sse:true, omit:'c' }
37
+ const baseParams = { path: encodeURI(desiredPath), search, sse:true, omit:'c' }
38
if (_.isEqual(baseParams, lastReq.current)) return
39
lastReq.current = baseParams
40