From 5a06b368b73dda5c190587adca11fd4f671d400b Mon Sep 17 00:00:00 2001 From: Sebastian Florek Date: Thu, 7 Mar 2024 16:54:50 +0100 Subject: [PATCH] fix: domains view not loading (#1300) --- www/src/components/account/Domains.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/src/components/account/Domains.tsx b/www/src/components/account/Domains.tsx index 4b9dc87c7..dc07208ba 100644 --- a/www/src/components/account/Domains.tsx +++ b/www/src/components/account/Domains.tsx @@ -27,6 +27,8 @@ import { List } from '../utils/List' import { Confirm } from '../utils/Confirm' import { DnsRecordFragment } from '../../generated/graphql' +import LoadingIndicator from '../utils/LoadingIndicator' + import { DELETE_DOMAIN, DNS_DOMAINS, UPDATE_DOMAIN } from './queries' import { Actions } from './Actions' import { MoreMenu } from './MoreMenu' @@ -261,6 +263,10 @@ function DomainsInner({ q, setDomainSelected }: any) { ) } + if (!data) { + return + } + const { dnsDomains: { pageInfo, edges }, } = data