Skip to content

Commit

Permalink
fix(core-utils): fix a bug with multiple add transporrt modes
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-heppner-ibigroup committed Nov 30, 2023
1 parent ad1807e commit 190c91c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core-utils/src/query-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ export function extractAdditionalModes(
cur.addTransportMode &&
cur.value
) {
return [...prev, cur.addTransportMode];
const newTransportModes = Array.isArray(cur.addTransportMode)
? cur.addTransportMode
: [cur.addTransportMode];
return [...prev, ...newTransportModes];
}
if (cur.type === "DROPDOWN") {
const transportMode = cur.options.find(o => o.value === cur.value)
Expand Down

0 comments on commit 190c91c

Please sign in to comment.