Skip to content

Commit

Permalink
fix: Fixed bug where continuous legend is appearing for categorical c…
Browse files Browse the repository at this point in the history
…olor-bys (#440)

* fixed continuous legend bug

* revert

* revert change for handle success

Co-authored-by: atarashansky <[email protected]>
  • Loading branch information
atarashansky and atarashansky authored Sep 12, 2022
1 parent ece5754 commit fc35d0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/continuousLegend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ class ContinuousLegend extends React.Component<Props> {
d3.select("#continuous_legend").selectAll("*").remove();
if (
!shallowEqual(asyncProps, this.cachedAsyncProps) &&
asyncProps
asyncProps &&
asyncProps.colorMode &&
asyncProps.colorMode !== "color by categorical metadata"
) {
this.updateContinuousLegend(asyncProps);
}
Expand Down

0 comments on commit fc35d0c

Please sign in to comment.