@provoly/dashboard 1.3.4 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1697,9 +1697,9 @@ class WidgetMapComponent extends DataWidgetComponent {
1697
1697
  this.subscriptions.add(this.options$.pipe(filter((opt) => !!opt)).subscribe((options) => {
1698
1698
  this.optionsCopy = JSON.parse(JSON.stringify(options));
1699
1699
  this.optionsCopy.layers?.forEach((layer) => (this.layerSettingsExpandedState[layer.title ?? 'MISSING TITLE'] = false));
1700
- if (this.optionsCopy.layers && this.optionsCopy.layers.some((layer) => !layer.group))
1700
+ if (this.optionsCopy.layers && this.optionsCopy.layers.some((layer) => !layer.group || layer.group === DEFAULT_LAYER_GROUP))
1701
1701
  this.optionsCopy.layers
1702
- ?.filter((l) => !l.group &&
1702
+ ?.filter((l) => (!l.group || l.group === DEFAULT_LAYER_GROUP) &&
1703
1703
  !this.layerGroups
1704
1704
  .find((group) => group.name === DEFAULT_LAYER_GROUP)
1705
1705
  ?.visibleLayers.includes(l.title ?? 'MISSING TITLE'))