From 22ee9322efbef730a7f8759a8509bae95da55c51 Mon Sep 17 00:00:00 2001 From: hppeng Date: Fri, 8 Jul 2022 15:45:24 -0700 Subject: [PATCH] Fix crash if no atree selected --- js/atree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/atree.js b/js/atree.js index 9fc62fa..61f904e 100644 --- a/js/atree.js +++ b/js/atree.js @@ -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);