Skip to content

Commit

Permalink
Fix: cloudimage query loading with flip was causing issue due to unde…
Browse files Browse the repository at this point in the history
…fined crop param
  • Loading branch information
AhmeeedMostafa authored and amrelbialy committed Dec 11, 2024
1 parent 388dadd commit 5e98ffe
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,13 @@ const cloudimageQueryToDesignState = (
designState = deepMerge(designState, operationDesignStateObject, true);
}
});
const { cropX2, cropY2, crop, watermark, ...unPreparedDesignState } =
designState;
const {
cropX2,
cropY2,
crop = {},
watermark,
...unPreparedDesignState
} = designState;

if (designState.adjustments?.isFlippedX) {
crop.x = shownImageDimensions.width - (cropX2 || 0);
Expand Down

0 comments on commit 5e98ffe

Please sign in to comment.