Skip to content

Commit

Permalink
Merge branch 'main' into fix-running-forever-maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Aug 12, 2024
2 parents 1c40f9c + fb2f187 commit e6b9598
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/components/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ all patches: ${JSON.stringify(patches, null, 1)}

// console.debug("Received patches!", is_just_acknowledgement, is_relevant_for_bonds, message.patches, message.response)

if (!is_just_acknowledgement) {
if (!is_just_acknowledgement && is_relevant_for_bonds) {
this.waiting_for_bond_to_trigger_execution = false
}
}
Expand Down Expand Up @@ -1028,7 +1028,9 @@ all patches: ${JSON.stringify(patches, null, 1)}
if (deps.upstream_cells_map.hasOwnProperty(sym)) {
// and the cell is not disabled
const running_disabled = this.state.notebook.cell_inputs[cell_id].metadata.disabled
return !running_disabled
// or indirectly disabled
const indirectly_disabled = this.state.notebook.cell_results[cell_id].depends_on_disabled_cells
return !(running_disabled || indirectly_disabled)
}
})

Expand Down

0 comments on commit e6b9598

Please sign in to comment.