From 728b61f8455e406bc0254b290d79b88c9633236a Mon Sep 17 00:00:00 2001 From: Massimo Melina Date: Wed, 29 Nov 2023 23:35:35 +0100 Subject: [PATCH] fix: admin/fs: new file added from disk was not then selected if it had a space in the name --- admin/src/addFiles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/src/addFiles.ts b/admin/src/addFiles.ts index 2148d7ab5..1f742af33 100644 --- a/admin/src/addFiles.ts +++ b/admin/src/addFiles.ts @@ -34,8 +34,8 @@ export default function addFiles() { h('li', { key: file }, file, ': ', err)) ) ), 'error') - const good = res.filter(x => x.name).map(x => parent.id + x.name) - reloadVfs(good) + const ids = res.filter(x => x.name).map(x => parent.id + encodeURI(x.name) + (x.link.endsWith('/') ? '/' : '')) + reloadVfs(ids) close() } })