Skip to content

Commit 0c737a7

Browse files
committed
fix: parsing null values in cli
1 parent 3704184 commit 0c737a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates/cli/lib/parser.js.twig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ const parse = (data) => {
2424
}
2525

2626
for (let key in data) {
27-
if (Array.isArray(data[key])) {
27+
if (data[key] === null) {
28+
console.log(`${chalk.yellow.bold(key)} : null`);
29+
continue;
30+
} else if (Array.isArray(data[key])) {
2831
console.log(`${chalk.yellow.bold.underline(key)}`);
2932
if (typeof data[key][0] === 'object') {
3033
drawTable(data[key]);

0 commit comments

Comments
 (0)