Skip to content

Commit

Permalink
fix(questionnaireFilter): correct array search function...
Browse files Browse the repository at this point in the history
  • Loading branch information
pl-buiquang committed Mar 25, 2024
1 parent 24014c6 commit 2d031f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ const VALUE_PARAM_NAME_PREFIX = 'item.answer.'
const FILTER_PARAM_NAME = '_filter'

const quoteValue = (value: string, type: string) => {
return type in ['valueString', 'valueCoding'] ? `"${value}"` : value
return ['valueString', 'valueCoding'].includes(type) ? `"${value}"` : value
}

export const questionnaireFiltersBuilders = (fhirKey: { id: string; type: string }, value?: string) => {
Expand Down

0 comments on commit 2d031f3

Please sign in to comment.