Skip to content

Commit

Permalink
fix(server-routes): make sure input's key has value (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
arashsheyda committed Jul 4, 2023
1 parent 43ff171 commit 8f25d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devtools/client/components/ServerRouteDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const finalURL = computed(() => domain.value + finalPath.value)
function parseInputs(inputs: any[]) {
const formatted = Object.fromEntries(
inputs.filter(({ key, value }) => key !== undefined && value !== undefined).map(({ key, value }) => [key, value]),
inputs.filter(({ key, value }) => key && value !== undefined).map(({ key, value }) => [key, value]),
)
return Object.entries(formatted).length ? formatted : undefined
}
Expand Down

0 comments on commit 8f25d72

Please sign in to comment.