From df012f5af7526785e5bb5a7ca08476eee4288597 Mon Sep 17 00:00:00 2001
From: Thomas Citharel <tcit@tcit.fr>
Date: Fri, 26 Mar 2021 19:27:51 +0100
Subject: [PATCH] Extra fixes for the privacy page

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
---
 js/src/router/index.ts               | 2 +-
 js/src/views/About/AboutInstance.vue | 4 ++--
 js/src/views/About/Privacy.vue       | 6 +++++-
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/js/src/router/index.ts b/js/src/router/index.ts
index 9853a7a3e..6336e886e 100644
--- a/js/src/router/index.ts
+++ b/js/src/router/index.ts
@@ -109,7 +109,7 @@ export const routes = [
     path: "/interact",
     name: RouteName.INTERACT,
     component: (): Promise<EsModuleComponent> =>
-      import(/* webpackChunkName: "cookies" */ "@/views/Interact.vue"),
+      import(/* webpackChunkName: "interact" */ "@/views/Interact.vue"),
     meta: { requiredAuth: false },
   },
   {
diff --git a/js/src/views/About/AboutInstance.vue b/js/src/views/About/AboutInstance.vue
index 120b0dcfb..590089348 100644
--- a/js/src/views/About/AboutInstance.vue
+++ b/js/src/views/About/AboutInstance.vue
@@ -97,11 +97,11 @@ import langs from "../../i18n/langs.json";
       query: LANGUAGES_CODES,
       variables() {
         return {
-          codes: this.config.languages,
+          codes: this?.config.languages,
         };
       },
       skip() {
-        return !this.config || !this.config.languages;
+        return !this.config || !this.config?.languages;
       },
     },
   },
diff --git a/js/src/views/About/Privacy.vue b/js/src/views/About/Privacy.vue
index ffb1791f3..4de1084cb 100644
--- a/js/src/views/About/Privacy.vue
+++ b/js/src/views/About/Privacy.vue
@@ -1,7 +1,11 @@
 <template>
   <div class="container section">
     <h2 class="title">{{ $t("Privacy Policy") }}</h2>
-    <div class="content" v-if="config" v-html="config.privacy.bodyHtml" />
+    <div
+      class="content"
+      v-if="config && config.privacy"
+      v-html="config.privacy.bodyHtml"
+    />
   </div>
 </template>