From 1219cfca9731c2026c5cd8aeaf343d1fa7272f17 Mon Sep 17 00:00:00 2001 From: Carlo Beltrame Date: Sat, 9 Mar 2024 19:01:50 +0100 Subject: [PATCH] Correctly check inclusion Fixes selecting portrait mode for picasso Refs https://github.com/ecamp/ecamp3/pull/4751#issuecomment-1986925771 --- frontend/src/components/print/config/PicassoConfig.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/print/config/PicassoConfig.vue b/frontend/src/components/print/config/PicassoConfig.vue index 023dcd6049..49e767cc05 100644 --- a/frontend/src/components/print/config/PicassoConfig.vue +++ b/frontend/src/components/print/config/PicassoConfig.vue @@ -75,7 +75,7 @@ export default { config.options.periods = config.options.periods.filter((period) => { return knownPeriods.includes(period) }) - if (!(config.options.orientation in ORIENTATIONS.map((o) => o.value))) { + if (!ORIENTATIONS.map((o) => o.value).includes(config.options.orientation)) { config.options.orientation = 'L' } return config