Skip to content

Commit

Permalink
fix: get array last element
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid committed May 20, 2024
1 parent 095ad7f commit 13c8825
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ const useOption = (
],
visualMap: [
{
min: h24TxCountSortedList[-1] === undefined ? 0 : h24TxCountSortedList[-1],
min:
h24TxCountSortedList[h24TxCountSortedList.length - 1] === undefined
? 0
: h24TxCountSortedList[h24TxCountSortedList.length - 1],
max: h24TxCountSortedList[0] === undefined ? 200 : h24TxCountSortedList[0],
dimension: 6,
orient: 'vertical',
Expand Down

0 comments on commit 13c8825

Please sign in to comment.