Skip to content

Commit

Permalink
[frontend] fix: fixed adding empty filters on datatables (#2142)
Browse files Browse the repository at this point in the history
  • Loading branch information
impolitepanda authored Jan 2, 2025
1 parent fec6ba7 commit 5da98fb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const FilterChipValues: FunctionComponent<Props> = ({
{idx > 0 && or}
<span>
{' '}
{ propertySchema?.schema_property_type.includes('instant') ? (o.label) : t(o.label)}
{propertySchema?.schema_property_type.includes('instant') || !o.label ? (o.label) : t(o.label)}
</span>
</Fragment>
));
Expand Down Expand Up @@ -100,9 +100,9 @@ const FilterChipValues: FunctionComponent<Props> = ({
str = `${str} ${t('OR')}`;
}
if (propertySchema?.schema_property_type.includes('instant')) {
str = `${str} ${fldt(o.label)}`;
str = `${str} ${o.label ? fldt(o.label) : o.label}`;
} else {
str = `${str} ${t(o.label)}`;
str = `${str} ${o.label ? t(o.label) : o.label}`;
}
});
return str;
Expand Down

0 comments on commit 5da98fb

Please sign in to comment.