Skip to content

Commit

Permalink
Fix root node loading in dark
Browse files Browse the repository at this point in the history
  • Loading branch information
duizendnegen committed Nov 27, 2022
1 parent e99a904 commit a763b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Smorgasbord/Smorgasbord.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const Smorgasbord = ({ hierchicalFlavours, onElementClick } : SmorgasbordProps)
}

const getColor = (d: any) => {
if (d.data.parentUuid === null) { // root node is not clickable & has a distinct colour
if (!d.depth) { // root node is not clickable & has a distinct colour
return "#1F1F1F";
} else if (d.data.state === 'NO') {
return "#000";
Expand Down

0 comments on commit a763b79

Please sign in to comment.