Skip to content

Commit

Permalink
Fix undefined
Browse files Browse the repository at this point in the history
This fixes that if not meta.default defined, an `undefined` is pushed to the array, causing problems on following code
  • Loading branch information
selankon committed Jun 27, 2024
1 parent b13a300 commit 7d56e46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Process/Chained.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ const getNextProcessInFlow = async (client: VocdoniSDKClient, voted: string, met
const getProcessIdsInFlowStep = (meta: FlowNode) => {
const ids: string[] = []

ids.push(meta.default)
if (meta.default) {
ids.push(meta.default)
}

if (!meta.conditions) {
return ids
Expand Down

0 comments on commit 7d56e46

Please sign in to comment.