From b309b07c2e822e0b7a37f386587a04e236a5af32 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adam=20Par=C3=A1k?= <xparak1@fi.muni.cz>
Date: Thu, 23 May 2024 13:42:26 +0200
Subject: [PATCH] HOTFIX: fix graphiql's errors in loading component

---
 frontend/src/pages/(navbar)/graphiql.tsx | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/frontend/src/pages/(navbar)/graphiql.tsx b/frontend/src/pages/(navbar)/graphiql.tsx
index 163b1b647..cbb007ebc 100644
--- a/frontend/src/pages/(navbar)/graphiql.tsx
+++ b/frontend/src/pages/(navbar)/graphiql.tsx
@@ -1,12 +1,9 @@
-import { useSetPageTitle } from '@/utils'
-import { lazy } from 'react'
+import { Suspense, lazy } from 'react'
 
 const GraphiQLPage = lazy(() => import('@/logic/GraphiQL'))
 
-export const GraphiQL = () => {
-  useSetPageTitle('GraphiQL')
-
-  return <GraphiQLPage />
-}
+export const GraphiQL = () => <Suspense>
+    <GraphiQLPage />
+</Suspense>
 
 export default GraphiQL
-- 
GitLab