mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 14:45:20 +00:00
Fixing showLocal.
This commit is contained in:
parent
b4ed4e5ec5
commit
fc3524d9ca
|
@ -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 {
|
||||||
|
|
|
@ -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}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue