@samitouri / QOSami-HFS / commits / 7bb53a44

fix: (regression beta) admin/shared: "source" field was adding final "\" on Windows' paths

Massimo Melina committed Mar 11, 2026 at 09:40 UTC 7bb53a44a1d80f3b677ab8c4e5a742c8ea902eff
1 file changed +1 -1
admin/src/FilePicker.ts
+1 -1
@@ -145,7 +145,7 @@ export default function FilePicker({ onSelect, multiple=true, files=true, folder
145 disabled: !sel.length && (!cwd || !folders && files), // !cwd is the drive selection on Windows, which is not a path
146 sx: { minWidth: 'max-content' },
147 onClick() {
148 - onSelect(sel.length ? sel.map(x => cwdDelimiter + x) : [cwd + '/'])
148 + onSelect(sel.length ? sel.map(x => cwdDelimiter + x) : [cwdDelimiter])
149 }
150 }, files && (sel.length || !folders) ? `Select (${sel.length})` : sm ? "Select this folder" : "This folder"),
151 folders && h(Btn, {