aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/bug/BugQuery.tsx
diff options
context:
space:
mode:
authorQuentin Gliech <quentingliech@gmail.com>2020-02-11 21:49:19 +0100
committerQuentin Gliech <quentingliech@gmail.com>2020-02-11 21:49:19 +0100
commit465f7ca73d7093eeeecb6553c804d8cfb06e6652 (patch)
tree28a19ae87252e776efa3bd0bb94b154131b866d7 /webui/src/bug/BugQuery.tsx
parent1effc91556c4567673c68329722bd415ec648a12 (diff)
downloadgit-bug-465f7ca73d7093eeeecb6553c804d8cfb06e6652.tar.gz
webui: stop using defaultRepository
Diffstat (limited to 'webui/src/bug/BugQuery.tsx')
-rw-r--r--webui/src/bug/BugQuery.tsx4
1 files changed, 2 insertions, 2 deletions
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;