Skip to content

Commit

Permalink
#186 disable predefined filter when filter window is open
Browse files Browse the repository at this point in the history
  • Loading branch information
matej-vavrek committed Mar 13, 2020
1 parent 8359c9c commit 51e4f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/components/preview/molecule/moleculeList.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const MoleculeList = memo(
const imgWidth = 150;

const [filteredCount, setFilteredCount] = useState(0);
const [predefinedFilter, setPredefinedFilter] = useState(DEFAULT_FILTER);
const [predefinedFilter, setPredefinedFilter] = useState(filter !== undefined ? filter.predefined : DEFAULT_FILTER);

const isActiveFilter = !!(filterSettings || {}).active;

Expand Down Expand Up @@ -266,7 +266,7 @@ const MoleculeList = memo(
hasHeader
title="Hit navigator"
headerActions={[
<FormControl className={classes.formControl} disabled={!(object_selection || []).length}>
<FormControl className={classes.formControl} disabled={!(object_selection || []).length || sortDialogOpen}>
<Select
className={classes.select}
value={predefinedFilter}
Expand Down

0 comments on commit 51e4f16

Please sign in to comment.