mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
Fixing showLocal.
This commit is contained in:
parent
b4ed4e5ec5
commit
fc3524d9ca
2 changed files with 2 additions and 6 deletions
|
@ -637,10 +637,7 @@ export class Main extends Component<any, MainState> {
|
|||
}
|
||||
|
||||
get showLocal(): boolean {
|
||||
return (
|
||||
this.isoData.site_res.federated_instances !== null &&
|
||||
this.isoData.site_res.federated_instances.linked.length > 0
|
||||
);
|
||||
return this.isoData.site_res.federated_instances?.linked.length > 0;
|
||||
}
|
||||
|
||||
get canAdmin(): boolean {
|
||||
|
|
|
@ -560,8 +560,7 @@ export class User extends Component<any, UserState> {
|
|||
]
|
||||
}
|
||||
showLocal={
|
||||
this.state.siteRes.federated_instances &&
|
||||
this.state.siteRes.federated_instances.length > 0
|
||||
this.state.siteRes.federated_instances?.linked.length > 0
|
||||
}
|
||||
onChange={this.handleUserSettingsListingTypeChange}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue