From: Dessalines Date: Wed, 7 Apr 2021 15:35:24 +0000 (-0400) Subject: Fix instances page. Fixes #237 X-Git-Url: http://these/git/%7B%24%7B%60data:application/%22%7Burl%7D/readmes/static/%7BallRss%7D?a=commitdiff_plain;h=e74db79c0f7cf122202e5048795178242002f7f2;p=lemmy-ui.git Fix instances page. Fixes #237 --- diff --git a/package.json b/package.json index dbcd1c7..fc620f1 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "eslint-plugin-prettier": "^3.3.1", "husky": "^5.1.0", "iso-639-1": "^2.1.9", - "lemmy-js-client": "0.10.0-rc.13", + "lemmy-js-client": "0.10.3", "lint-staged": "^10.5.4", "mini-css-extract-plugin": "^1.3.8", "node-fetch": "^2.6.1", diff --git a/src/shared/components/instances.tsx b/src/shared/components/instances.tsx index 812d12f..fb63724 100644 --- a/src/shared/components/instances.tsx +++ b/src/shared/components/instances.tsx @@ -37,13 +37,13 @@ export class Instances extends Component {
{i18n.t("linked_instances")}
{this.itemList(federated_instances.linked)} - {federated_instances.allowed.length > 0 && ( + {federated_instances.allowed?.length > 0 && (
{i18n.t("allowed_instances")}
{this.itemList(federated_instances.allowed)}
)} - {federated_instances.blocked.length > 0 && ( + {federated_instances.blocked?.length > 0 && (
{i18n.t("blocked_instances")}
{this.itemList(federated_instances.blocked)} diff --git a/yarn.lock b/yarn.lock index b23cf79..bed31b0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5027,10 +5027,10 @@ lcid@^1.0.0: dependencies: invert-kv "^1.0.0" -lemmy-js-client@0.10.0-rc.13: - version "0.10.0-rc.13" - resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.10.0-rc.13.tgz#ea2e88857243374d7fbd49ee6b4bb94c34359d85" - integrity sha512-zodvYkwBYR7iP27ah6L/QPUphUUdq38kCH7QF2CUYBrsSAEkGmq2kdz+iusnQ1Ht7Ad80GtYycFprsZBveV5eQ== +lemmy-js-client@0.10.3: + version "0.10.3" + resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.10.3.tgz#815fe3f49b696c010858331aafc3850318b9e15d" + integrity sha512-ay5RQZSfoErLYh+b3aHpjA34dH/8rlNUcZF3L5nN+1cp4UWC4qWl97XjUM52QFyRzHslFPeP8D99fpgVe4USIQ== levn@^0.4.1: version "0.4.1"