Skip to content

Commit

Permalink
fix(react-components): hide Rule-based coloring button with no rules (#…
Browse files Browse the repository at this point in the history
…4525)

* fix(react-components): hide Rule-based coloring button with no rules

* chore: update screenshot
  • Loading branch information
haakonflatval-cognite authored May 23, 2024
1 parent d5c728d commit 1abe824
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ export const RuleBasedOutputsButton = ({
if (onRuleSetStylingChanged !== undefined) onRuleSetStylingChanged(assetStylingGroups);
};

if (ruleInstances === undefined || ruleInstances.length === 0) {
return <></>;
}

return (
<>
<CogsTooltip
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1abe824

Please sign in to comment.