Fix crash if no atree selected

This commit is contained in:
hppeng 2022-07-08 15:45:24 -07:00
parent 644213e5aa
commit 22ee9322ef

View file

@ -316,7 +316,7 @@ const atree_validate = new (class extends ComputeNode {
const atree_state = input_map.get('atree-state');
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);