From 204f715415c544bb0e2036def8bbc87e7d36443f Mon Sep 17 00:00:00 2001 From: Lucas Faria Date: Thu, 13 Feb 2025 00:44:29 -0300 Subject: [PATCH] fix filters for multiple choice questions --- frontend/src/scenes/surveys/SurveyAnswerFilters.tsx | 5 +---- frontend/src/scenes/surveys/surveyLogic.tsx | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/frontend/src/scenes/surveys/SurveyAnswerFilters.tsx b/frontend/src/scenes/surveys/SurveyAnswerFilters.tsx index b69a08d18e936..bca48f6bac551 100644 --- a/frontend/src/scenes/surveys/SurveyAnswerFilters.tsx +++ b/frontend/src/scenes/surveys/SurveyAnswerFilters.tsx @@ -35,7 +35,6 @@ const OPERATOR_OPTIONS: Record = { { label: allOperatorsMapping[PropertyOperator.NotIContains], value: PropertyOperator.NotIContains }, { label: allOperatorsMapping[PropertyOperator.Regex], value: PropertyOperator.Regex }, { label: allOperatorsMapping[PropertyOperator.NotRegex], value: PropertyOperator.NotRegex }, - { label: allOperatorsMapping[PropertyOperator.Exact], value: PropertyOperator.Exact }, ], [SurveyQuestionType.Link]: [], } @@ -134,9 +133,7 @@ export function SurveyAnswerFilters(): JSX.Element { placeholder={ question.type === SurveyQuestionType.Rating ? 'Enter a number' - : question.type === SurveyQuestionType.Open - ? 'Enter text to match' - : 'Select values' + : 'Enter text to match' } /> )} diff --git a/frontend/src/scenes/surveys/surveyLogic.tsx b/frontend/src/scenes/surveys/surveyLogic.tsx index c19fd6d76d9a5..0fc8ad6cd8d2d 100644 --- a/frontend/src/scenes/surveys/surveyLogic.tsx +++ b/frontend/src/scenes/surveys/surveyLogic.tsx @@ -50,8 +50,8 @@ const DEFAULT_OPERATORS: Record