- fixed displaying proper label in the table filter dropdown;
This commit is contained in:
@@ -118,6 +118,7 @@ const AllDomandeBeneficiarioTableAsync = ({ statuses }) => {
|
||||
|
||||
const statusFilterTemplate = (options) => {
|
||||
return <Dropdown value={options.value} options={statuses}
|
||||
valueTemplate={getBandoLabel(options.value)}
|
||||
onChange={(e) => {
|
||||
options.filterCallback(e.value, options.index)
|
||||
const filters = { ...lazyState.filters };
|
||||
|
||||
@@ -132,6 +132,7 @@ const BeneficiarioDomandeTable = () => {
|
||||
|
||||
const statusFilterTemplate = (options) => {
|
||||
return <Dropdown value={options.value} options={statuses}
|
||||
valueTemplate={getBandoLabel(options.value)}
|
||||
onChange={(e) => options.filterCallback(e.value, options.index)}
|
||||
itemTemplate={statusItemTemplate} placeholder={translationStrings.selectOneLabel}
|
||||
className="p-column-filter"/>;
|
||||
|
||||
Reference in New Issue
Block a user