Skip to content

Commit bedf393

Browse files
committed
fix(studio): keep App under the file size limit
1 parent c444cf2 commit bedf393

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

‎packages/studio/src/App.tsx‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,10 @@ export function StudioApp({ readOnlyPreview = false, readOnlyPreviewReason }: St
316316
readOnlyPreview,
317317
});
318318
domEditSelectionBridgeRef.current = domEditSession.domEditSelection;
319-
handleDomZIndexReorderCommitRef.current = trackedStudioEdit(
320-
domEditSession.handleDomZIndexReorderCommit,
321-
);
319+
const { handleDomZIndexReorderCommit: zCommit, handleDomEditElementDelete: del } = domEditSession;
320+
handleDomZIndexReorderCommitRef.current = trackedStudioEdit(zCommit);
322321
clearDomSelectionRef.current = domEditSession.clearDomSelection;
323-
handleDomEditElementDeleteRef.current = trackedStudioEdit(
324-
domEditSession.handleDomEditElementDelete,
325-
);
322+
handleDomEditElementDeleteRef.current = trackedStudioEdit(del);
326323
resetKeyframesRef.current = domEditSession.handleResetSelectedElementKeyframes;
327324
invalidateGsapCacheRef.current = domEditSession.invalidateGsapCache;
328325
deleteSelectedKeyframesRef.current = () => deleteSelectedKeyframes(domEditSession);

0 commit comments

Comments
 (0)