Skip to content

Commit

Permalink
Merge pull request #1909 from DemaPy/patch-1
Browse files Browse the repository at this point in the history
fix(client): fix Type Error in Picture Configuration Options
AmruthPillai authored Jun 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents f0ede57 + 2409a57 commit e3b4105
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -52,6 +52,7 @@ export const PictureOptions = () => {
}, [picture.aspectRatio]);

const onAspectRatioChange = (value: AspectRatio) => {
if (!value) return
setValue("basics.picture.aspectRatio", stringToRatioMap[value]);
};

@@ -117,6 +118,8 @@ export const PictureOptions = () => {
id="picture.aspectRatio"
value={picture.aspectRatio}
onChange={(event) => {
if (!event.target.valueAsNumber) return
if (isNaN(event.target.valueAsNumber)) return
setValue("basics.picture.aspectRatio", event.target.valueAsNumber);
}}
/>

0 comments on commit e3b4105

Please sign in to comment.