diff --git a/src/ui/nehubaContainer/nehubaContainer.component.ts b/src/ui/nehubaContainer/nehubaContainer.component.ts index bebc992d64c52f75ef669aee32fb1fc820da44ae..fbbc509659c1cc4b6c9f8729283f1554e8393972 100644 --- a/src/ui/nehubaContainer/nehubaContainer.component.ts +++ b/src/ui/nehubaContainer/nehubaContainer.component.ts @@ -798,10 +798,10 @@ export class NehubaContainer implements OnInit, OnChanges, OnDestroy{ return name } - const newEntries = curr.filter(entry => { + const newEntries = (curr && curr.filter(entry => { const name = getLayerName(entry) return acc.map(getLayerName).indexOf(name) < 0 - }) + })) || [] const entryChanged: (itemPrevState, newArr) => boolean = (itemPrevState, newArr) => { const layerName = getLayerName(itemPrevState)