Skip to content

Commit e4b1703

Browse files
committed
fix: fix translation of selected option in filter panel
1 parent 3d0f1d9 commit e4b1703

File tree

1 file changed

+3
-1
lines changed
  • src/frontend/components/property-type/default-type

1 file changed

+3
-1
lines changed

src/frontend/components/property-type/default-type/filter.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ const Filter: React.FC<FilterPropertyProps> = (props) => {
2727
...v,
2828
label: tl(`${property.path}.${v.value}`, property.resourceId, { defaultValue: v.label ?? v.value }),
2929
}))
30-
const selected = property.availableValues.find((av) => av.value === value)
30+
31+
const selected = availableValues.find((av) => av.value === value)
32+
3133
return (
3234
<Select
3335
variant="filter"

0 commit comments

Comments
 (0)