Skip to content

Commit

Permalink
#186 fix undefined object
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-postek-m2ms committed Apr 28, 2020
1 parent 32786ad commit 6388c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/preview/molecule/moleculeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ const MoleculeView = memo(({ imageHeight, imageWidth, data }) => {
*/
const getValueMatchingClass = item => {
let cssClass = '';
if (filter.predefined !== 'none') {
if (filter && filter.predefined !== 'none') {
cssClass = isMatchingValue(item) ? classes.matchingValue : classes.unmatchingValue;
}
return cssClass;
Expand Down

0 comments on commit 6388c9c

Please sign in to comment.