chore: fixing the typescript stuff

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-09-06 09:04:57 +02:00
parent f2d767f022
commit 1f00a3bd43
@@ -55,10 +55,17 @@ export const GraphiQLPage = () => {
</Typography>
</Content>
);
} else if (!endpoints.value) {
content = (
<Content>
<Typography variant="h4" color="error">
No GraphQL endpoints available
</Typography>
</Content>
);
} else {
content = (
<Content noPadding>
{/* @ts-expect-error */}
<GraphiQLBrowser endpoints={endpoints.value} />
</Content>
);