mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 01:36:49 +00:00
fix error (#4885)
This commit is contained in:
parent
f4eb3380b4
commit
363f548f13
@ -90,7 +90,7 @@ const calcPoints = (
|
||||
let last = [average(first), lastValue(first)];
|
||||
|
||||
const getCoords = (item, i, offset = 0, depth = 1) => {
|
||||
if (depth > 1) {
|
||||
if (depth > 1 && item) {
|
||||
return item.forEach((subItem, index) =>
|
||||
getCoords(subItem, i, index, depth - 1)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user