Skip to content

Commit

Permalink
fix: reset boolean value in filter drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarosław Wasiak authored and dziraf committed Nov 16, 2022
1 parent 12221ca commit a2904d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/frontend/components/property-type/boolean/filter.tsx
Expand Up @@ -20,9 +20,8 @@ const Filter: React.FC<FilterPropertyProps> = (props) => {
{ value: false, label: mapValue(false) },
]
const selected = options.find((o) => o.value === value)

const handleChange = (s) => {
const newValue = s ? s.value : ''
const newValue = s ? s.value : undefined
onChange(property.path, newValue)
}

Expand Down

0 comments on commit a2904d0

Please sign in to comment.