Skip to content

Commit

Permalink
fix crash when there are no categories
Browse files Browse the repository at this point in the history
  • Loading branch information
zbigg committed Sep 27, 2023
1 parent d616f7e commit 614e60e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function TimeSeriesWidgetUIContent({
_categoryIndex ?? (categories && category ? categories.indexOf(category) : 0);
if (
categoryIndex === -1 ||
categoryIndex >= categories.length ||
(categories && categoryIndex >= categories.length) ||
!Number.isFinite(categoryIndex)
) {
continue;
Expand Down

0 comments on commit 614e60e

Please sign in to comment.