mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +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) => {
|
||||
const schemaEntry = this.schema[key];
|
||||
if (value == null && schemaEntry != null && schemaEntry.default) {
|
||||
if (value == null && schemaEntry != null && schemaEntry.default != null) {
|
||||
return schemaEntry.default;
|
||||
}
|
||||
return value;
|
||||
|
Loading…
Reference in New Issue
Block a user