Skip to content

Commit

Permalink
Fix intermediate bond values again part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Aug 12, 2024
1 parent 01135f7 commit fb2f187
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 @@ -809,7 +809,7 @@ patch: ${JSON.stringify(

// 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 @@ -1021,7 +1021,9 @@ patch: ${JSON.stringify(
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 fb2f187

Please sign in to comment.