From c09c0a8c183d781a825fecdee1e6c5030f46c73f Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 2 May 2026 11:51:33 +0200 Subject: [PATCH] Add AI service health check and improve layout --- apps/client/src/app/pages/api/api-page.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/app/pages/api/api-page.component.ts b/apps/client/src/app/pages/api/api-page.component.ts index e425fbd10..df5c7e1ff 100644 --- a/apps/client/src/app/pages/api/api-page.component.ts +++ b/apps/client/src/app/pages/api/api-page.component.ts @@ -24,6 +24,7 @@ import { Component, DestroyRef, OnInit } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { MatCardModule } from '@angular/material/card'; import { format, startOfYear } from 'date-fns'; +import { isObject } from 'lodash'; import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; import { catchError, map, Observable, of, OperatorFunction } from 'rxjs'; @@ -71,7 +72,7 @@ export class GfApiPageComponent implements OnInit { } public isFetchFailure(value: unknown): value is FetchFailure { - return typeof value === 'object' && value !== null && 'fetchError' in value; + return isObject(value) && value !== null && 'fetchError' in value; } private catchFetchFailure(): OperatorFunction {