aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/webui/src/components/health.tsx2
-rw-r--r--src/main/webui/src/gql/conf/fragment-masking.ts13
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"
>
<b>Error: Pantry API is unreachable!</b>
- &nbsp; Check your network settings or contact your administrator.
+ &nbsp;Check your network settings or contact your administrator.
</Alert>
);
} 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<any, any>,
-> = TDocumentType extends DocumentTypeDecoration<infer TType, any>
- ? TType extends { " $fragmentName"?: infer TKey }
- ? TKey extends string
- ? { " $fragmentRefs"?: { [key in TKey]: TType } }
+> =
+ TDocumentType extends DocumentTypeDecoration<infer TType, any>
+ ? 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<TType>(