Skip to main content

put_redocked_block_back

Function put_redocked_block_back 

Source
async fn put_redocked_block_back(
    state: &AppState,
    block_id: &str,
    target_tab_id: &str,
    source_tab_id: &str,
)
Expand description

Undo a redock whose layout step failed after the MoveBlock saga moved block_id to target_tab_id: move it back to source_tab_id and, if the source tree no longer holds it, append it there. Best effort; the caller is already returning the original error.