From 6d9e5d5299d7fb8b5a4d9a71026feac6abba42e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 28 Jun 2022 10:47:16 +0200 Subject: [PATCH] Web: fix JavaScript issue that only pops up in production Fix an issue ("`this` is undefined) that only pops up when serving the static files from `yarn build`, and not when using the Vite devserver. --- web/app/src/components/StatusFilterBar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/src/components/StatusFilterBar.vue b/web/app/src/components/StatusFilterBar.vue index c3aad1c8..b58e9593 100644 --- a/web/app/src/components/StatusFilterBar.vue +++ b/web/app/src/components/StatusFilterBar.vue @@ -23,7 +23,7 @@ const visibleStatuses = computed(() => { :data-status="status" :class="{active: activeStatuses.indexOf(status) >= 0}" @click="emit('click', status)" - v-html="indicator(status, this.classPrefix)" + v-html="indicator(status, classPrefix)" >