Skip to content

Commit

Permalink
Enable 'Apply' button on filter only when values present. Fix #258.
Browse files Browse the repository at this point in the history
  • Loading branch information
chandru89new committed Mar 12, 2024
1 parent f1fe9a5 commit f32fdeb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ const validateFilter = (filter: CheckFilter): boolean => {
}

if (filter.operator === "equal") {
return (
!!filter.type && (filter.key !== undefined || filter.value !== undefined)
);
const noValue = filter.value === undefined || !filter.value?.trim();
if (noValue) return false;
return !!filter.type && (filter.key !== undefined || !noValue);
}

return false;
Expand Down

0 comments on commit f32fdeb

Please sign in to comment.