Skip to content

Commit

Permalink
fix: fix cr
Browse files Browse the repository at this point in the history
  • Loading branch information
interstellarmt committed Feb 20, 2025
1 parent c45bb32 commit a672b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/legendCategory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function inferLegendShape(
function filterEmptyIds(legendStyle) {
return {
...legendStyle,
data: legendStyle?.data.filter((item) => item.id !== ''),
data: legendStyle?.data.filter((item) => item.id !== '') || [],
};
}

Expand Down

0 comments on commit a672b0c

Please sign in to comment.