Skip to content

Commit

Permalink
Fixed type issue for choices property
Browse files Browse the repository at this point in the history
  • Loading branch information
oojacoboo committed Oct 9, 2023
1 parent 08ac50d commit e7313c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ const addChoices = (inputFields, choices) => {
for (const [key, value] of Object.entries(choices)) {
inputFields.map((inputField) => {
if (inputField.key === key) {
inputField.choices = `${value}`;
inputField.choices = value;
}

// Zapier only supports one level of depth (should be refactored to recursive for more depth)
if (inputField.children && inputField.children.length) {
inputField.children.map((child) => {
if (child.key === key) {
child.choices = `${value}`;
child.choices = value;
}
});
}
Expand Down

0 comments on commit e7313c4

Please sign in to comment.