fix new element scene null leading to bugs after aligning

This commit is contained in:
Ryan Di
2023-06-23 21:31:28 +08:00
parent b7350f9707
commit dce6010b29
5 changed files with 24 additions and 16 deletions

View File

@@ -19,10 +19,7 @@ export const actionFlipHorizontal = register({
trackEvent: { category: "element" },
perform: (elements, appState) => {
return {
elements: updateFrameMembershipOfSelectedElements(
flipSelectedElements(elements, appState, "horizontal"),
appState,
),
elements: flipSelectedElements(elements, appState, "horizontal"),
appState,
commitToHistory: true,
};