]> Untitled Git - lemmy-ui.git/commitdiff
Fix instances page. Fixes #237
authorDessalines <tyhou13@gmx.com>
Wed, 7 Apr 2021 15:35:24 +0000 (11:35 -0400)
committerDessalines <tyhou13@gmx.com>
Wed, 7 Apr 2021 15:35:24 +0000 (11:35 -0400)
package.json
src/shared/components/instances.tsx
yarn.lock

index dbcd1c7475d7699df4418e3a1d6eccc14c61dd6d..fc620f1e36ce85101c94eb4fb8026209be78edb4 100644 (file)
@@ -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",
index 812d12faaac68e8974036a98af8c73646437f3cd..fb6372469155844e22494c581ccc062106a6a3ef 100644 (file)
@@ -37,13 +37,13 @@ export class Instances extends Component<any, InstancesState> {
               <h5>{i18n.t("linked_instances")}</h5>
               {this.itemList(federated_instances.linked)}
             </div>
-            {federated_instances.allowed.length > 0 && (
+            {federated_instances.allowed?.length > 0 && (
               <div class="col-md-6">
                 <h5>{i18n.t("allowed_instances")}</h5>
                 {this.itemList(federated_instances.allowed)}
               </div>
             )}
-            {federated_instances.blocked.length > 0 && (
+            {federated_instances.blocked?.length > 0 && (
               <div class="col-md-6">
                 <h5>{i18n.t("blocked_instances")}</h5>
                 {this.itemList(federated_instances.blocked)}
index b23cf7904f2db52e395954aaf1eb5b3232136228..bed31b0ccbc5b95c9690499b704c275d15002e2d 100644 (file)
--- 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"