Fixing showLocal.

This commit is contained in:
Dessalines 2021-02-01 13:26:24 -05:00
parent b4ed4e5ec5
commit fc3524d9ca
2 changed files with 2 additions and 6 deletions

View file

@ -637,10 +637,7 @@ export class Main extends Component<any, MainState> {
} }
get showLocal(): boolean { get showLocal(): boolean {
return ( return this.isoData.site_res.federated_instances?.linked.length > 0;
this.isoData.site_res.federated_instances !== null &&
this.isoData.site_res.federated_instances.linked.length > 0
);
} }
get canAdmin(): boolean { get canAdmin(): boolean {

View file

@ -560,8 +560,7 @@ export class User extends Component<any, UserState> {
] ]
} }
showLocal={ showLocal={
this.state.siteRes.federated_instances && this.state.siteRes.federated_instances?.linked.length > 0
this.state.siteRes.federated_instances.length > 0
} }
onChange={this.handleUserSettingsListingTypeChange} onChange={this.handleUserSettingsListingTypeChange}
/> />