Fix crash if no atree selected
This commit is contained in:
parent
644213e5aa
commit
22ee9322ef
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ const atree_validate = new (class extends ComputeNode {
|
||||||
const atree_state = input_map.get('atree-state');
|
const atree_state = input_map.get('atree-state');
|
||||||
const atree_order = input_map.get('atree');
|
const atree_order = input_map.get('atree');
|
||||||
|
|
||||||
if (atree_order.length == 0) { return [0, ['no atree data']]; }
|
if (atree_order.length == 0) { return [0, false, ['no atree data']]; }
|
||||||
|
|
||||||
console.log(atree_state);
|
console.log(atree_state);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue