fix(native-filters): empty label indicator (#15084)
This commit is contained in:
parent
6c9f15a6e4
commit
c0eff8faf6
|
|
@ -150,7 +150,7 @@ describe('SelectFilterPlugin', () => {
|
|||
],
|
||||
},
|
||||
filterState: {
|
||||
label: '',
|
||||
label: undefined,
|
||||
value: null,
|
||||
},
|
||||
});
|
||||
|
|
@ -165,7 +165,7 @@ describe('SelectFilterPlugin', () => {
|
|||
},
|
||||
extraFormData: {},
|
||||
filterState: {
|
||||
label: '',
|
||||
label: undefined,
|
||||
value: null,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -138,7 +138,9 @@ export default function PluginFilterSelect(props: PluginFilterSelectProps) {
|
|||
inverseSelection,
|
||||
),
|
||||
filterState: {
|
||||
label: `${(values || []).join(', ')}${suffix}`,
|
||||
label: values?.length
|
||||
? `${(values || []).join(', ')}${suffix}`
|
||||
: undefined,
|
||||
value:
|
||||
appSection === AppSection.FILTER_CONFIG_MODAL && defaultToFirstItem
|
||||
? undefined
|
||||
|
|
|
|||
Loading…
Reference in New Issue