fix: (regression 0.48.0) download-counter stopped working

Massimo Melina committed Sep 9, 2023 at 12:09 UTC 04e1e7097478e139f7a4c7b63ba18671b2c00d15
1 file changed +1 -1
frontend/src/useFetchList.ts
+1 -1
@@ -17,7 +17,7 @@ export function usePath() {
17
18 export default function useFetchList() {
19 const snap = useSnapState()
20 - const uri = usePath().slice(1)
20 + const uri = usePath() // this api can still work removing the initial slash, but then we'll have a mixed situation that will require plugins an extra effort
21 const search = snap.remoteSearch || undefined
22 const lastUri = useRef('')
23 const lastReq = useRef<any>()