Skip to content

Commit

Permalink
style(*): use the right store method
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourget committed Oct 31, 2019
1 parent f443ea8 commit 4143f8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export class SearchBarComponent implements OnInit, OnDestroy {
this.search.emit({ research, results });

if (this.store !== undefined) {
const newResults = this.store.entities$.value
const newResults = this.store.all()
.filter(result => result.source !== research.source)
.concat(results);
this.store.load(newResults);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class CatalogLibraryToolComponent implements OnInit {
* @internal
*/
ngOnInit() {
if (this.store.entities$.value.length === 0) {
if (this.store.count === 0) {
this.loadCatalogs();
}
}
Expand Down

0 comments on commit 4143f8a

Please sign in to comment.