From d489d12207cd8351c6a4176253395f96204c2339 Mon Sep 17 00:00:00 2001 From: edlu77 Date: Mon, 22 Apr 2024 12:46:18 -0400 Subject: [PATCH] Fix for empty object check --- apps/a2agc/src/app/core/state/data/data.state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/a2agc/src/app/core/state/data/data.state.ts b/apps/a2agc/src/app/core/state/data/data.state.ts index f047fc0..cedba58 100644 --- a/apps/a2agc/src/app/core/state/data/data.state.ts +++ b/apps/a2agc/src/app/core/state/data/data.state.ts @@ -58,7 +58,7 @@ export class DataState extends NgxsImmutableDataRepository { isPrivate(): Observable { const response = this.http.get(DATA_CONFIG.datasetsPath); return response.pipe( - map((result) => !!result), + map((result) => result.toString() === '{}'), catchError(this.handleError) ); }