Skip to content
Snippets Groups Projects
Unverified Commit c032af60 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #266 from HumanBrainProject/hotfix_urlEncodedRegionSelectionBusted

hotfix: fixing url encoding region selection
parents e55e4fe4 df4be645
No related branches found
No related tags found
No related merge requests found
import { Injectable, OnDestroy } from "@angular/core";
import { Effect, Actions, ofType } from "@ngrx/effects";
import { Observable, Subscription, merge, fromEvent, combineLatest } from "rxjs";
import { SHOW_KG_TOS } from "../state/uiState.store";
import { withLatestFrom, map, tap, switchMap, filter } from "rxjs/operators";
import { Subscription, merge, fromEvent, combineLatest } from "rxjs";
import { withLatestFrom, map, filter } from "rxjs/operators";
import { Store, select } from "@ngrx/store";
import { SELECT_PARCELLATION, SELECT_REGIONS, NEWVIEWER, UPDATE_PARCELLATION, SELECT_REGIONS_WITH_ID } from "../state/viewerState.store";
import { worker } from 'src/atlasViewer/atlasViewer.workerService.service'
......@@ -62,9 +61,12 @@ export class UseEffects implements OnDestroy{
* older versions of atlas viewer may only have labelIndex as region identifier
*/
@Effect()
onSelectRegionWithId = this.actions$.pipe(
ofType(SELECT_REGIONS_WITH_ID),
withLatestFrom(this.updatedParcellation$),
onSelectRegionWithId = combineLatest(
this.actions$.pipe(
ofType(SELECT_REGIONS_WITH_ID)
),
this.updatedParcellation$
).pipe(
map(([action, parcellation]) => {
const { selectRegionIds } = action
const { ngId: defaultNgId } = parcellation
......
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