Skip to content

Commit

Permalink
#41 fix compound classes in compounds picker
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-postek-m2ms committed Mar 2, 2020
1 parent 436284a commit 17d6930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/preview/compounds/compoundView.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const CompoundView = memo(({ height, width, data }) => {
}

Object.keys(selectedCompoundsClass).forEach(classKey => {
if (!!selectedCompoundsClass[classKey].find(data.index)) {
if (!!selectedCompoundsClass[classKey].find(item => item === data.index)) {
current_style = Object.assign(current_style, {
backgroundColor: compoundsColors[classKey].color
});
Expand Down

0 comments on commit 17d6930

Please sign in to comment.