Skip to content

Commit

Permalink
fix: filter row "clear" button clears "application not started"
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-foucault committed Mar 18, 2021
1 parent 8e8b9d5 commit c367cbe
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/components/FilterableTable/FilterableTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ export const FilterableTable: React.FunctionComponent<Props> = ({
...filterArgs,
...newFilterArgs
};
filters.forEach((option) => {
const column = option.argName;

if (option.isSearchEnabled) {
newQuery[column] = newFilterArgs[column] ?? undefined;
}
filters.forEach((filter) => {
filter.argNames.forEach((argName) => {
newQuery[argName] = newFilterArgs[argName] ?? undefined;
});
});

const queryString = JSON.stringify(newQuery);
Expand Down

0 comments on commit c367cbe

Please sign in to comment.