aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/list/ListQuery.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/list/ListQuery.tsx')
-rw-r--r--webui/src/list/ListQuery.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/webui/src/list/ListQuery.tsx b/webui/src/list/ListQuery.tsx
index c91264e1..84b72431 100644
--- a/webui/src/list/ListQuery.tsx
+++ b/webui/src/list/ListQuery.tsx
@@ -203,8 +203,8 @@ function ListQuery() {
let nextPage = null;
let previousPage = null;
let count = 0;
- if (!loading && !error && data?.defaultRepository?.bugs) {
- const bugs = data.defaultRepository.bugs;
+ if (!loading && !error && data?.repository?.bugs) {
+ const bugs = data.repository.bugs;
count = bugs.totalCount;
// This computes the URL for the next page
if (bugs.pageInfo.hasNextPage) {
@@ -250,8 +250,8 @@ function ListQuery() {
content = <Placeholder count={10} />;
} else if (error) {
content = <Error error={error} />;
- } else if (data?.defaultRepository) {
- const bugs = data.defaultRepository.bugs;
+ } else if (data?.repository) {
+ const bugs = data.repository.bugs;
if (bugs.totalCount === 0) {
content = <NoBug />;