X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/fd79729916cf6ddf27063b1865d39a36abb9e038..ab08a8e2200157caaf73828b8459a641fff0d1e9:/src/components/data-table-filters/data-table-filters.tsx

diff --git a/src/components/data-table-filters/data-table-filters.tsx b/src/components/data-table-filters/data-table-filters.tsx
index cf0260b1..bede5aea 100644
--- a/src/components/data-table-filters/data-table-filters.tsx
+++ b/src/components/data-table-filters/data-table-filters.tsx
@@ -50,11 +50,10 @@ class DataTableFilter extends React.Component<DataTableFilterProps & WithStyles<
 
     render() {
         const { name, classes, children } = this.props;
+        const isActive = this.state.filters.some(f => f.selected);
         return <>
             <ButtonBase
-                className={classnames([
-                    classes.root,
-                    { [classes.active]: this.state.filters.filter(({ selected }) => !selected).length > 0 }])}
+                className={classnames([classes.root, { [classes.active]: isActive }])}
                 component="span"
                 onClick={this.open}
                 disableRipple>
