Skip to content

Commit

Permalink
fix: prevent undefined keys
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Feb 22, 2024
1 parent 0e7e265 commit 11e9d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function parseArgument(arg: AnyPointer, { context, variables, basePath, lo
return []
})

const argMap = Object.fromEntries(await Promise.all(loadingNamedArgs))
const argMap = Object.fromEntries((await Promise.all(loadingNamedArgs)).filter(([key]) => !!key))

if (Object.keys(argMap).length > 0) {
return argMap
Expand Down

0 comments on commit 11e9d2a

Please sign in to comment.