Skip to content

Commit d7aba01

Browse files
authored
Merge pull request #1494 from snypy/fixes-initial-loading
Fixes initial snippet loading
2 parents 8f0e90f + 8660a20 commit d7aba01

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/app/layout/base/base.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, OnDestroy, OnInit } from '@angular/core';
22
import { Select, Store } from '@ngxs/store';
3-
import { firstValueFrom, Observable, Subscription } from 'rxjs';
3+
import { Observable, Subscription } from 'rxjs';
44
import { ActiveFilterService } from '../../services/navigation/activeFilter.service';
55
import { AuthResource } from '../../services/resources/auth.resource';
66
import { UpdateLabels } from '../../state/label/label.actions';
@@ -34,9 +34,6 @@ export class BaseComponent implements OnInit, OnDestroy {
3434
/**
3535
* Refresh snippets on scope changes
3636
*/
37-
firstValueFrom(this.scope$).then(() => {
38-
this.activeFilterService.updateFilter('main', 'all');
39-
});
4037
this.scopeSubscription = this.scope$.subscribe((scope: ScopeModel) => {
4138
if (scope && scope.area) {
4239
this.store.dispatch(new UpdateSnippets());

0 commit comments

Comments
 (0)