Skip to content

Commit

Permalink
fix: add defense logic for added element on dragStart #917
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed May 11, 2023
1 parent da50168 commit ef37c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-moveable/src/gesto/GestoUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export function getNextTransforms(e: any) {
return originalDatas.nextTransforms;
}
export function getNextTransformText(e: any) {
return getNextTransforms(e).join(" ");
return (getNextTransforms(e) || []).join(" ");
}

export function getNextStyle(e: any) {
Expand Down

0 comments on commit ef37c3b

Please sign in to comment.