diff --git a/src/ui/banner/banner.component.ts b/src/ui/banner/banner.component.ts index 1bec07a845f9eeed4f1cc25a44949e1c2753ef60..c572d500e0b14b020fe9a429bee2438d045486f5 100644 --- a/src/ui/banner/banner.component.ts +++ b/src/ui/banner/banner.component.ts @@ -58,7 +58,8 @@ export class AtlasBanner implements OnDestroy, OnInit { this.selectedParcellation$ = this.store.pipe( select('viewerState'), safeFilter('parcellationSelected'), - map(state => state.parcellationSelected) + map(state => state.parcellationSelected), + distinctUntilChanged((o, n) => o === n) ) this.selectedRegions$ = merge( @@ -283,5 +284,9 @@ export class AtlasBanner implements OnDestroy, OnInit { get toastDuration() { return this.constantService.citationToastDuration } + + get isMobile(){ + return this.constantService.mobile + } }