Skip to content

Commit

Permalink
Merge pull request #9 from beabee-communityrm/fix/callout-array-filters
Browse files Browse the repository at this point in the history
fix: incorrect filter type for selectable components
  • Loading branch information
wpf500 authored Jul 8, 2024
2 parents 08155f9 + 0d170c6 commit 705a4ce
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/common/src/utils/callouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@ function convertComponentToFilter(
};
}

if (
isCalloutComponentOfBaseType(
component,
CalloutComponentBaseType.INPUT_SELECTABLE,
)
) {
return {
...baseItem,
type: component.type === CalloutComponentType.INPUT_SELECTABLE_RADIO
? "enum"
: "array",
options: convertValuesToOptions(component.values),
};
}

if (
isCalloutComponentOfType(component, CalloutComponentType.INPUT_TEXT_AREA)
) {
Expand Down

0 comments on commit 705a4ce

Please sign in to comment.