Skip to content

Commit

Permalink
fix: resource loading issue (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
irmastnt committed Dec 7, 2023
1 parent a084369 commit c9dc099
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/dsp-app/src/app/workspace/resource/resource.component.ts
Expand Up @@ -332,14 +332,14 @@ export class ResourceComponent implements OnChanges, OnDestroy {
.subscribe(
(countQuery: CountQueryResponse) => {
if (countQuery.numberOfResults > 0) {
// this is a compound object
this.compoundPosition = new DspCompoundPosition(
countQuery.numberOfResults
);
this.compoundNavigation(1);
} else {
// not a compound object
this.loading = false;
}
}

this.loading = false;
this._cdr.markForCheck();
},
(error: ApiResponseError) => {
Expand Down

0 comments on commit c9dc099

Please sign in to comment.