Skip to content

Commit

Permalink
Merge pull request #4753 from carlobeltrame/fix-picasso-portrait-mode
Browse files Browse the repository at this point in the history
Correctly check inclusion in array
  • Loading branch information
carlobeltrame authored Mar 11, 2024
2 parents a05fd45 + 1219cfc commit 4bfa305
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 4bfa305

Please sign in to comment.