Skip to content

Commit

Permalink
removing one more derived.navigatorTargets
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsbajorics committed Jul 22, 2024
1 parent 00b15c9 commit c3cdd6d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions editor/src/components/editor/actions/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2602,14 +2602,10 @@ export const UPDATE_FNS = {
leftMenu: { visible: editor.leftMenu.visible, selectedTab: LeftMenuTab.Navigator },
}
},
WRAP_IN_ELEMENT: (
action: WrapInElement,
editor: EditorModel,
derived: DerivedState,
): EditorModel => {
WRAP_IN_ELEMENT: (action: WrapInElement, editor: EditorModel): EditorModel => {
const orderedActionTargets = getZIndexOrderedViewsWithoutDirectChildren(
action.targets,
derived.navigatorTargets,
getNavigatorTargetsFromEditorState(editor).navigatorTargets,
)

const parentPath = commonInsertionPathFromArray(
Expand Down

0 comments on commit c3cdd6d

Please sign in to comment.