1
0
Fork 0

Treat empty string as null in optional Foxx configs

Fixes #1495.
This commit is contained in:
Alan Plum 2015-11-24 13:14:41 +01:00
parent 2552c3493b
commit 3bd39234ec
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class FoxxService {
return;
}
if (def.required === false && (rawValue === undefined || rawValue === null)) {
if (def.required === false && (rawValue === undefined || rawValue === null || rawValue === '')) {
delete this.options.configuration[name];
this.configuration[name] = def.default;
return;