Skip to content

Commit

Permalink
Merge pull request #1494 from snypy/fixes-initial-loading
Browse files Browse the repository at this point in the history
Fixes initial snippet loading
  • Loading branch information
nezhar authored Aug 27, 2022
2 parents 8f0e90f + 8660a20 commit d7aba01
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/layout/base/base.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Select, Store } from '@ngxs/store';
import { firstValueFrom, Observable, Subscription } from 'rxjs';
import { Observable, Subscription } from 'rxjs';
import { ActiveFilterService } from '../../services/navigation/activeFilter.service';
import { AuthResource } from '../../services/resources/auth.resource';
import { UpdateLabels } from '../../state/label/label.actions';
Expand Down Expand Up @@ -34,9 +34,6 @@ export class BaseComponent implements OnInit, OnDestroy {
/**
* Refresh snippets on scope changes
*/
firstValueFrom(this.scope$).then(() => {
this.activeFilterService.updateFilter('main', 'all');
});
this.scopeSubscription = this.scope$.subscribe((scope: ScopeModel) => {
if (scope && scope.area) {
this.store.dispatch(new UpdateSnippets());
Expand Down

0 comments on commit d7aba01

Please sign in to comment.