Skip to content

Commit

Permalink
fix(suite): prevent graph tooltip from rendering when payload is []
Browse files Browse the repository at this point in the history
- otherwise it can crash the app

(cherry picked from commit f1d1695)
  • Loading branch information
komret committed Mar 18, 2024
1 parent 9b354a1 commit 4cf551e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export const GraphTooltipAccount = ({
...props
}: GraphTooltipAccountProps) => {
const formatters = useFormatters();
if (!active || !payload) {

// Note: payload is [] when discovery is paused.
if (!active || !payload?.length) {
return null;
}

Expand Down

0 comments on commit 4cf551e

Please sign in to comment.