diff options
author | Sascha <GlancingMind@outlook.com> | 2021-04-22 14:02:43 +0200 |
---|---|---|
committer | Sascha <GlancingMind@outlook.com> | 2021-04-22 14:17:00 +0200 |
commit | 774bae6d432c13cfa0de3ddc2f111927743243fe (patch) | |
tree | 0c52317767e18f339bec08bfcfe398ecb8bfbc10 /webui/src/pages/new | |
parent | 41e85023019bc13c06a1de2c431e0bd920e9e29a (diff) | |
download | git-bug-774bae6d432c13cfa0de3ddc2f111927743243fe.tar.gz |
Replace occurrences of humanId with the full Id
Unless an ID must be shorted for user convenience, the full id should be used
to prevent collisions.
Diffstat (limited to 'webui/src/pages/new')
-rw-r--r-- | webui/src/pages/new/NewBug.graphql | 4 | ||||
-rw-r--r-- | webui/src/pages/new/NewBugPage.tsx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/webui/src/pages/new/NewBug.graphql b/webui/src/pages/new/NewBug.graphql index 92df016e..ef024e41 100644 --- a/webui/src/pages/new/NewBug.graphql +++ b/webui/src/pages/new/NewBug.graphql @@ -1,7 +1,7 @@ mutation newBug($input: NewBugInput!) { newBug(input: $input) { bug { - humanId + id } } -}
\ No newline at end of file +} diff --git a/webui/src/pages/new/NewBugPage.tsx b/webui/src/pages/new/NewBugPage.tsx index 4dc60e3c..cdec3558 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.humanId; + const id = data.data?.newBug.bug.id; history.push('/bug/' + id); }); issueTitleInput.value = ''; |