Skip to content

Commit

Permalink
fix: domains view not loading (#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
floreks authored Mar 7, 2024
1 parent 46a461a commit 5a06b36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions www/src/components/account/Domains.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -261,6 +263,10 @@ function DomainsInner({ q, setDomainSelected }: any) {
)
}

if (!data) {
return <LoadingIndicator />
}

const {
dnsDomains: { pageInfo, edges },
} = data
Expand Down

0 comments on commit 5a06b36

Please sign in to comment.