Checked null & undefined in settings migration (#10609)
no-issue This is to make sure we catch all falsy cases of values.
This commit is contained in:
parent
02c56e90e5
commit
ca16b197a2
@ -41,7 +41,7 @@ module.exports.up = (options) => {
|
||||
}
|
||||
|
||||
// @NOTE: null or undefined were obviously intended to be false
|
||||
if (entry.value === 'null' || entry.value === 'undefined') {
|
||||
if (entry.value === null || entry.value === undefined || entry.value === 'null' || entry.value === 'undefined') {
|
||||
const value = 'false';
|
||||
common.logging.info(`Setting ${entry.key} to ${value} because it was ${entry.value}`);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user