mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-25 08:06:51 +00:00
Fix indexeddb file system readdir to use a range
This commit is contained in:
@@ -29,7 +29,7 @@ export function ProjectPanel() {
|
||||
setEntries(undefined)
|
||||
client.fs.readdir(projectRoot).then(entries => {
|
||||
setEntries(entries.flatMap(e => {
|
||||
return e.isFile() && e.name.startsWith(projectRoot) ? [e.name.slice(projectRoot.length)] : []
|
||||
return e.isFile() ? [e.name.slice(projectRoot.length)] : []
|
||||
}))
|
||||
})
|
||||
}, [projectRoot])
|
||||
|
||||
Reference in New Issue
Block a user