fix: Empty string not parsed as false boolean in env validation
closes #3581
This commit is contained in:
@@ -495,12 +495,13 @@ export class Environment {
|
||||
* 1 = true
|
||||
* "true" = true
|
||||
* "false" = false
|
||||
* "" = false
|
||||
*
|
||||
* @param value The string to convert
|
||||
* @returns A boolean
|
||||
*/
|
||||
private toBoolean(value: string) {
|
||||
return !!JSON.parse(value);
|
||||
return value ? !!JSON.parse(value) : false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user