Skip to content

Commit bfad89e

Browse files
authored
fix: prevent error if nativescript.config entry is undefined (#5919)
1 parent f6a0018 commit bfad89e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class ConfigListCommand implements ICommand {
3838
.join("\n")
3939
);
4040
} else {
41-
return color.yellow(value.toString());
41+
return color.yellow(typeof value === 'undefined' ? 'undefined' : value.toString());
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)