Skip to content

Commit

Permalink
fix: admin/fs: new file added from disk was not then selected if it h…
Browse files Browse the repository at this point in the history
…ad a space in the name
  • Loading branch information
rejetto committed Dec 6, 2023
1 parent 4bd87d0 commit 728b61f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/src/addFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
})
Expand Down

0 comments on commit 728b61f

Please sign in to comment.