Skip to content

Commit

Permalink
DROID-2764 Editor | Fix | DND fixes (#1937)
Browse files Browse the repository at this point in the history
  • Loading branch information
uburoiubu authored Dec 18, 2024
1 parent 72ae805 commit 9cbe168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3688,14 +3688,14 @@ class EditorViewModel(

mode = EditorMode.Edit

controlPanelInteractor.onEvent(ControlPanelMachine.Event.SAM.OnApply)
controlPanelInteractor.onEvent(OnApply)

viewModelScope.launch {
val blocks = (selected - exclude).sortedBy { id -> ordering[id] }
orchestrator.proxies.intents.send(
Intent.Document.Move(
context = context,
target = moveTarget,
target = if (targetContext != vmParams.ctx) "" else target,
targetContext = targetContext,
blocks = blocks,
position = position
Expand Down Expand Up @@ -3723,7 +3723,7 @@ class EditorViewModel(

mode = EditorMode.Edit

controlPanelInteractor.onEvent(ControlPanelMachine.Event.SAM.OnApply)
controlPanelInteractor.onEvent(OnApply)

viewModelScope.launch {
orchestrator.proxies.intents.send(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ class EditorScrollAndMoveTest : EditorPresentationTestSetup() {
params = Move.Params(
context = root,
targetContext = b.content<Block.Content.Link>().target,
targetId = b.id,
targetId = "",
blockIds = listOf(a.id),
position = Position.INNER
)
Expand Down

0 comments on commit 9cbe168

Please sign in to comment.