From 821ea6d6711744face1366227070f8786dec52cb Mon Sep 17 00:00:00 2001 From: mattwr18 Date: Thu, 24 Oct 2019 12:45:55 +0200 Subject: [PATCH] Update LocaleSwitch with guard clause - return if there is no currentUser - do not copy graphql directory as there is no need to send messages to backend --- webapp/Dockerfile.maintenance | 1 - webapp/components/LocaleSwitch/LocaleSwitch.vue | 12 ++++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/webapp/Dockerfile.maintenance b/webapp/Dockerfile.maintenance index 0e4a618ed..7daf4f822 100644 --- a/webapp/Dockerfile.maintenance +++ b/webapp/Dockerfile.maintenance @@ -19,7 +19,6 @@ RUN yarn install --production=false --frozen-lockfile --non-interactive COPY assets assets COPY components/LocaleSwitch/ components/LocaleSwitch -COPY graphql graphql COPY components/Dropdown.vue components/Dropdown.vue COPY layouts/blank.vue layouts/blank.vue COPY locales locales diff --git a/webapp/components/LocaleSwitch/LocaleSwitch.vue b/webapp/components/LocaleSwitch/LocaleSwitch.vue index 307425aca..38334621e 100644 --- a/webapp/components/LocaleSwitch/LocaleSwitch.vue +++ b/webapp/components/LocaleSwitch/LocaleSwitch.vue @@ -33,12 +33,12 @@