Skip to content

Commit

Permalink
Show location name on the filter (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
makombe authored Dec 17, 2024
1 parent 615910e commit 1f3ae48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const TransactionsLocationsFilter = <T,>(props: TransactionsLocationsFilterProps
onChange(data?.selectedItem?.name || '');
}}
initialSelectedItem={`${stockLocations[0]?.name}`}
itemToString={(item) => t('location', `${item?.name}`)}
itemToString={(item) => (item ? item.name : '')}
shouldFilterItem={() => true}
placeholder={props.placeholder}
ref={ref}
Expand Down

0 comments on commit 1f3ae48

Please sign in to comment.