From 19ed611477186af2702fb7ba403b0bac45ccc4aa Mon Sep 17 00:00:00 2001 From: Gareth Date: Fri, 24 May 2024 17:40:50 -0700 Subject: [PATCH] fix: snapshot browser on Windows --- webui/src/components/SnapshotBrowser.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webui/src/components/SnapshotBrowser.tsx b/webui/src/components/SnapshotBrowser.tsx index 8a6e5167..258d960f 100644 --- a/webui/src/components/SnapshotBrowser.tsx +++ b/webui/src/components/SnapshotBrowser.tsx @@ -101,8 +101,13 @@ export const SnapshotBrowser = ({ return; } + let path = key as string; + if (!path.endsWith("/")) { + path += "/"; + } + const resp = await backrestService.listSnapshotFiles({ - path: (key + "/") as string, + path, repoId, snapshotId, });