Browse Source

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

master
Andrew Kingston 4 years ago
parent
commit
1c65e2b63a
  1. 1
      packages/client/src/components/preview/IndicatorSet.svelte

1
packages/client/src/components/preview/IndicatorSet.svelte

@ -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

Loading…
Cancel
Save