Skip to content

Commit

Permalink
Fix: ColonyHome handle domain filter properly
Browse files Browse the repository at this point in the history
When the domains array has not been loaded yet
  • Loading branch information
rdig committed Mar 30, 2020
1 parent d9af03e commit b125c04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/dashboard/components/ColonyHome/ColonyHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ const ColonyHome = ({ match, location }: Props) => {
return [{ id: 'domain.root' }];

default:
if (!domains) {
return [{ id: 'domain.root' }];
}
return domains[filteredDomainId]
? [{ id: 'domain.root' }, domains[filteredDomainId].name]
: [{ id: 'domain.root' }];
Expand Down

0 comments on commit b125c04

Please sign in to comment.