mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-11 23:42:54 +00:00
fix: Apply default config options when they're falsy
Change-type: patch Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
parent
5569e2bc84
commit
2a94a7b730
@ -119,7 +119,7 @@ class Config extends EventEmitter {
|
|||||||
})
|
})
|
||||||
.then((value) => {
|
.then((value) => {
|
||||||
const schemaEntry = this.schema[key];
|
const schemaEntry = this.schema[key];
|
||||||
if (value == null && schemaEntry != null && schemaEntry.default) {
|
if (value == null && schemaEntry != null && schemaEntry.default != null) {
|
||||||
return schemaEntry.default;
|
return schemaEntry.default;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
Loading…
Reference in New Issue
Block a user