Skip to content

Commit 5a06b36

Browse files
authored
fix: domains view not loading (#1300)
1 parent 46a461a commit 5a06b36

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

www/src/components/account/Domains.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import { List } from '../utils/List'
2727
import { Confirm } from '../utils/Confirm'
2828
import { DnsRecordFragment } from '../../generated/graphql'
2929

30+
import LoadingIndicator from '../utils/LoadingIndicator'
31+
3032
import { DELETE_DOMAIN, DNS_DOMAINS, UPDATE_DOMAIN } from './queries'
3133
import { Actions } from './Actions'
3234
import { MoreMenu } from './MoreMenu'
@@ -261,6 +263,10 @@ function DomainsInner({ q, setDomainSelected }: any) {
261263
)
262264
}
263265

266+
if (!data) {
267+
return <LoadingIndicator />
268+
}
269+
264270
const {
265271
dnsDomains: { pageInfo, edges },
266272
} = data

0 commit comments

Comments
 (0)