Skip to content

Commit

Permalink
Correctly check inclusion
Browse files Browse the repository at this point in the history
Fixes selecting portrait mode for picasso
Refs #4751 (comment)
  • Loading branch information
carlobeltrame committed Mar 9, 2024
1 parent 3733fd7 commit 1219cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/print/config/PicassoConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1219cfc

Please sign in to comment.