From 1fae0a1e3ad94cc1069cbac590e89c64d1f73263 Mon Sep 17 00:00:00 2001 From: Anne Menzel Date: Tue, 27 Sep 2022 11:19:59 +0200 Subject: [PATCH] Fix: Prevent division by zero error by setting null as fallback value for force16to9 --- Resources/Private/Fusion/Component/Video/Video.fusion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Private/Fusion/Component/Video/Video.fusion b/Resources/Private/Fusion/Component/Video/Video.fusion index 34d694c..3cab9b4 100644 --- a/Resources/Private/Fusion/Component/Video/Video.fusion +++ b/Resources/Private/Fusion/Component/Video/Video.fusion @@ -27,7 +27,7 @@ prototype(Jonnitto.PrettyEmbedVideoPlatforms:Component.Video) < prototype(Neos.F // If true, this get only a value if ratio is not set force16to9 = ${this.configuration.defaults.force16to9} - force16to9.@process.setRatio = ${value ? (16 / 9) : false} + force16to9.@process.setRatio = ${value ? (16 / 9) : null} wrapper = ${Configuration.setting('Jonnitto.PrettyEmbedHelper.wrapper')}