aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/bug
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/bug')
-rw-r--r--webui/src/bug/BugQuery.graphql2
-rw-r--r--webui/src/bug/BugQuery.tsx4
-rw-r--r--webui/src/bug/TimelineQuery.graphql2
-rw-r--r--webui/src/bug/TimelineQuery.js5
4 files changed, 5 insertions, 8 deletions
diff --git a/webui/src/bug/BugQuery.graphql b/webui/src/bug/BugQuery.graphql
index caa247ed..cdc4723f 100644
--- a/webui/src/bug/BugQuery.graphql
+++ b/webui/src/bug/BugQuery.graphql
@@ -1,7 +1,7 @@
#import "./Bug.graphql"
query GetBug($id: String!) {
- defaultRepository {
+ repository {
bug(prefix: $id) {
...Bug
}
diff --git a/webui/src/bug/BugQuery.tsx b/webui/src/bug/BugQuery.tsx
index ea7bb7da..2ecf718c 100644
--- a/webui/src/bug/BugQuery.tsx
+++ b/webui/src/bug/BugQuery.tsx
@@ -15,8 +15,8 @@ const BugQuery: React.FC<Props> = ({ match }: Props) => {
});
if (loading) return <CircularProgress />;
if (error) return <p>Error: {error}</p>;
- if (!data?.defaultRepository?.bug) return <p>404.</p>;
- return <Bug bug={data.defaultRepository.bug} />;
+ if (!data?.repository?.bug) return <p>404.</p>;
+ return <Bug bug={data.repository.bug} />;
};
export default BugQuery;
diff --git a/webui/src/bug/TimelineQuery.graphql b/webui/src/bug/TimelineQuery.graphql
index 7a8bc736..493f4416 100644
--- a/webui/src/bug/TimelineQuery.graphql
+++ b/webui/src/bug/TimelineQuery.graphql
@@ -5,7 +5,7 @@
#import "./SetStatusFragment.graphql"
query Timeline($id: String!, $first: Int = 10, $after: String) {
- defaultRepository {
+ repository {
bug(prefix: $id) {
timeline(first: $first, after: $after) {
nodes {
diff --git a/webui/src/bug/TimelineQuery.js b/webui/src/bug/TimelineQuery.js
index 11f3d08c..886edab2 100644
--- a/webui/src/bug/TimelineQuery.js
+++ b/webui/src/bug/TimelineQuery.js
@@ -15,10 +15,7 @@ const TimelineQuery = ({ id }) => {
if (loading) return <CircularProgress />;
if (error) return <p>Error: {error}</p>;
return (
- <Timeline
- ops={data.defaultRepository.bug.timeline.nodes}
- fetchMore={fetchMore}
- />
+ <Timeline ops={data.repository.bug.timeline.nodes} fetchMore={fetchMore} />
);
};