From 04dd79cefce37da30a1038d4e349e39512e93a11 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Sun, 7 May 2023 13:56:14 -0400 Subject: Add nbsp to health component --- src/main/webui/src/components/health.tsx | 2 +- src/main/webui/src/gql/conf/fragment-masking.ts | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/webui/src/components/health.tsx b/src/main/webui/src/components/health.tsx index 8bf1cc6..bbc4e14 100644 --- a/src/main/webui/src/components/health.tsx +++ b/src/main/webui/src/components/health.tsx @@ -17,7 +17,7 @@ export const Health = () => { className="m-8 mb-0 bg-red-100 text-red-500 dark:bg-red-800 dark:text-red-200" > Error: Pantry API is unreachable! -   Check your network settings or contact your administrator. +  Check your network settings or contact your administrator. ); } else { diff --git a/src/main/webui/src/gql/conf/fragment-masking.ts b/src/main/webui/src/gql/conf/fragment-masking.ts index 4bae142..92ad1ea 100644 --- a/src/main/webui/src/gql/conf/fragment-masking.ts +++ b/src/main/webui/src/gql/conf/fragment-masking.ts @@ -6,13 +6,14 @@ import { export type FragmentType< TDocumentType extends DocumentTypeDecoration, -> = TDocumentType extends DocumentTypeDecoration - ? TType extends { " $fragmentName"?: infer TKey } - ? TKey extends string - ? { " $fragmentRefs"?: { [key in TKey]: TType } } +> = + TDocumentType extends DocumentTypeDecoration + ? TType extends { " $fragmentName"?: infer TKey } + ? TKey extends string + ? { " $fragmentRefs"?: { [key in TKey]: TType } } + : never : never - : never - : never; + : never; // return non-nullable if `fragmentType` is non-nullable export function useFragment( -- cgit