Fix builder throwing error on empty URL

TODO: clean up dirty flags
This commit is contained in:
hppeng 2022-06-24 22:43:28 -07:00
parent 2000d381a8
commit 94b67115aa
2 changed files with 3 additions and 3 deletions

View file

@ -1428,7 +1428,7 @@
<script type="text/javascript" src="../js/sq2items.js"></script>
<script type="text/javascript" src="../js/optimize.js"></script>
<div id="graph_body" class="container-fluid me-4" style="max-width: 95%;">
<div id="graph_body" style="max-width: 95%; height: 100vh">
</div>
<script src="https://d3js.org/d3.v7.js"></script>
<script type="text/javascript" src="../js/render_compute_graph.js"></script>

View file

@ -93,9 +93,9 @@ class ComputeNode {
this.inputs.push(parent_node)
link_name = (link_name !== undefined) ? link_name : parent_node.name;
this.input_translation.set(parent_node.name, link_name);
this.inputs_dirty.set(parent_node.name, parent_node.dirty);
if (parent_node.dirty) {
if (parent_node.dirty || (parent_node.value === null && !this.fail_cb)) {
this.inputs_dirty_count += 1;
this.inputs_dirty.set(parent_node.name, true);
}
parent_node.children.push(this);
return this;