Skip to content

Commit

Permalink
Make sure we don't highlight undefined rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Lanza committed Apr 1, 2024
1 parent 1bff060 commit 3177bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/upset/src/components/Columns/SizeBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const SizeBar: FC<Props> = ({ row, size }) => {
return bookmarkedColorPallete[row.id];
}

if (currentIntersection?.id === row?.id) { // if currently selected, use the highlight colors
if (currentIntersection && currentIntersection?.id === row?.id) { // if currently selected, use the highlight colors
return highlightColors[index];
}
return colors[index];
Expand Down

0 comments on commit 3177bff

Please sign in to comment.