Skip to content

Commit

Permalink
fix: ignore unsupported files from contents list (#2607)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Apr 11, 2024
1 parent f753723 commit 9870b42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/server/storage.ts
Expand Up @@ -124,7 +124,7 @@ export const getContentsList = (() => {
const result = await Promise.all(chunk.map(key => getContent(event, key)))
contents.push(...result)
}
return contents
return contents.filter(c => c && c._path)
}

return (event: H3Event, prefix?: string) => {
Expand Down

0 comments on commit 9870b42

Please sign in to comment.