title: How to fix the error observable in angular
body: <p>I want to remove the current user that login thats why I used filter to.
  but I get an error which is:</p>
  
  <blockquote>
    <p>Type 'Subscription' is missing the following properties from type 'Observable[]>': _isScalar, source, operator, lift, and 6 more.</p>
  </blockquote>
  
  <p>Here's the code:</p>
  
  <pre><code>@Select(UserPageState.get('collection')) users$: Observable&lt;Array&lt;Partial&lt;User&gt;&gt;&gt;;
  async ngOnInit() {
    const USER = this.creds.credentials['id'];
    this.users$.subscribe(param =&gt; param.filter(x =&gt; x.id !== USER));
    await this.store.dispatch(new UserPageList({ start: 1, length: this.pageSize })).toPromise();
  }
  </code></pre>
  
  <p><strong><em>HTML</em></strong> </p>
  
  <pre><code>&lt;ag-grid-angular
        style="width: 100%; height: 100%;"
        [class]="(darkMode$ | async) ? 'ag-theme-balham-dark' : 'ag-theme-balham'"
        [gridOptions]="gridOptions"
        [rowData]="users$ | async"
        [columnDefs]="columnDefs"
        [frameworkComponents]="frameworkComponents"
        (gridReady)="onGridReady($event)"
        (firstDataRendered)="onFirstDataRendered($event)"
      &gt;
      &lt;/ag-grid-angular&gt;
  </code></pre>