Skip to content

Commit

Permalink
Merge pull request #3 from batabana/fix-force-16-to-9-fallback-value
Browse files Browse the repository at this point in the history
Fix: Prevent division by zero error by setting null as fallback value for force16to9
  • Loading branch information
jonnitto authored Sep 27, 2022
2 parents 8249d46 + 1fae0a1 commit 5bde7b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Component/Video/Video.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -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}
[email protected] = ${value ? (16 / 9) : false}
[email protected] = ${value ? (16 / 9) : null}

wrapper = ${Configuration.setting('Jonnitto.PrettyEmbedHelper.wrapper')}

Expand Down

0 comments on commit 5bde7b9

Please sign in to comment.