Skip to content

Commit

Permalink
fix(surveys): fix created_by dropdown onChange method (#17726)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajmajerik authored Oct 3, 2023
1 parent 7bca1dc commit 1062cf7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions frontend/src/scenes/surveys/Surveys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,7 @@ export function Surveys(): JSX.Element {
</span>
<LemonSelect
onChange={(user) => {
if (user) {
if (user === 'any') {
if (filters) {
const { created_by, ...restFilters } = filters
setSurveysFilters(restFilters, true)
}
} else {
setSurveysFilters({ created_by: user })
}
}
setSurveysFilters({ created_by: user })
}}
options={uniqueCreators}
value={filters.created_by}
Expand Down

0 comments on commit 1062cf7

Please sign in to comment.