Skip to content

Commit

Permalink
fix(cloud-image-editor): fix extraction of filter operation with un…
Browse files Browse the repository at this point in the history
…defined value
  • Loading branch information
nd0ut committed Feb 8, 2023
1 parent 58733c4 commit 351b080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/CloudImageEditor/src/lib/transformationUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const asNumber = ([value]) => (typeof value !== 'undefined' ? Number(value) : un
const asBoolean = () => true;
const asFilter = ([name, amount]) => ({
name,
amount: Number(amount),
amount: typeof amount !== 'undefined' ? Number(amount) : 100,
});

// Docs: https://uploadcare.com/docs/transformations/image/resize-crop/#operation-crop
Expand Down

0 comments on commit 351b080

Please sign in to comment.