From 57e7147021e38b847213d4dc7f0e0bf0b022850d Mon Sep 17 00:00:00 2001
From: Michael Muré <batolettre@gmail.com>
Date: Wed, 28 Aug 2024 11:43:42 +0200
Subject: graphql: properly namespace Bug to make space for other entities
 (#1254)

Also: use gqlgen directives to help the type auto-binding

Missing:
- namespace mutations
- adapt the webUI queries
---
 webui/src/pages/new/NewBugPage.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webui/src/pages/new/NewBugPage.tsx')

diff --git a/webui/src/pages/new/NewBugPage.tsx b/webui/src/pages/new/NewBugPage.tsx
index 0852ef39..91e4905a 100644
--- a/webui/src/pages/new/NewBugPage.tsx
+++ b/webui/src/pages/new/NewBugPage.tsx
@@ -62,7 +62,7 @@ function NewBugPage() {
         },
       },
     }).then(function (data) {
-      const id = data.data?.newBug.bug.id;
+      const id = data.data?.bugCreate.bug.id;
       navigate('/bug/' + id);
     });
 
-- 
cgit 

