Skip to content

Commit

Permalink
Attempt to stop glitchiness
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Oct 17, 2023
1 parent 34e559e commit 2ef9f1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion projects/srm/src/app/api.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable, NgZone, Optional, Inject } from '@angular/core';
import { from, Observable, ReplaySubject } from 'rxjs';
import { EMPTY, from, Observable, ReplaySubject } from 'rxjs';
import { catchError, delay, finalize, map, switchMap, tap } from 'rxjs/operators';

import { environment } from '../environments/environment';
Expand Down Expand Up @@ -241,6 +241,9 @@ export class ApiService {
}

getCards(searchParams: SearchParams, offset=0, zoomedIn=true): Observable<Card[]> {
if (this.platform.server()) {
return from([]);
}
const params: any = {
size: 10,
offset: offset,
Expand Down

0 comments on commit 2ef9f1f

Please sign in to comment.