Skip to content
Snippets Groups Projects
Commit 0c88e765 authored by Xiao Gui's avatar Xiao Gui
Browse files

hotfix: backwards compat with some URLs

parent e04b3ab0
No related branches found
No related tags found
No related merge requests found
# v2.3.6
## Bugfixes
- fix backwards compatibility with some URLs
\ No newline at end of file
......@@ -40,6 +40,7 @@ pages:
- Fetching datasets: 'advanced/datasets.md'
- Display non-atlas volumes: 'advanced/otherVolumes.md'
- Release notes:
- v2.3.6: 'releases/v2.3.6.md'
- v2.3.5: 'releases/v2.3.5.md'
- v2.3.4: 'releases/v2.3.4.md'
- v2.3.3: 'releases/v2.3.3.md'
......
import { Component, OnInit, ViewChildren, QueryList, HostBinding } from "@angular/core";
import { select, Store } from "@ngrx/store";
import { distinctUntilChanged, map, withLatestFrom, shareReplay, groupBy, mergeMap, toArray, switchMap, scan, filter } from "rxjs/operators";
import { distinctUntilChanged, map, withLatestFrom, shareReplay, groupBy, mergeMap, toArray, switchMap, scan, filter, startWith } from "rxjs/operators";
import { Observable, Subscription, from, zip, of, combineLatest } from "rxjs";
import { viewerStateSelectTemplateWithId, viewerStateToggleLayer } from "src/services/state/viewerState.store.helper";
import { MatMenuTrigger } from "@angular/material/menu";
......@@ -47,7 +47,9 @@ export class AtlasLayerSelector implements OnInit {
)
this.availableTemplates$ = this.store$.pipe(
select(viewerStateSelectedTemplateFullInfoSelector)
select(viewerStateSelectedTemplateFullInfoSelector),
map(v => v || []),
startWith<any[]>([])
)
this.selectedTemplate$ = this.store$.pipe(
......@@ -91,16 +93,17 @@ export class AtlasLayerSelector implements OnInit {
.filter(p => !p['groupName'])
.filter(p => !p['baseLayer'])
),
startWith<any[]>([])
)
this.groupedLayers$ = combineLatest(
this.groupedLayers$ = combineLatest([
atlasLayersLatest$.pipe(
map(allParcellations =>
allParcellations.filter(p => !p['baseLayer'])
),
),
layersGroupBy$
).pipe(
]).pipe(
map(([ allParcellations, arr]) => arr
.filter(([ key ]) => !!key )
.map(([key, parcellations]) => ({
......@@ -116,6 +119,7 @@ export class AtlasLayerSelector implements OnInit {
})
}))
),
startWith<any[]>([])
)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment