1
0
Fork 0
mirror of synced 2024-10-01 01:28:51 +13:00

Fix issue showing selected component indicators on initial load sometimes due to null reference

This commit is contained in:
Andrew Kingston 2022-07-27 12:55:20 +01:00
parent f2888ce297
commit 1c65e2b63a

View file

@ -72,6 +72,7 @@
// Sanity limit of 100 active indicators
const children = Array.from(parents)
.map(parent => parent?.children?.[0])
.filter(x => x != null)
.slice(0, 100)
// If there aren't any nodes then reset