fix flowchart jison

This commit is contained in:
Sidharth Vinod
2022-09-02 00:46:02 +05:30
parent 53fe35e37e
commit f1fa91a51c
2 changed files with 2 additions and 2 deletions

View File

@@ -271,7 +271,7 @@ document
{ $$ = [];}
| document line
{
if(Array.isArray($2) && $2.length > 0){
if(!Array.isArray($2) || $2.length > 0){
$1.push($2);
}
$$=$1;}