diff --git a/CHANGELOG.md b/CHANGELOG.md index ffc1f354..69fdf700 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,9 @@ - Custom flag selection is now saved like name and post password. - Bugfixes. +### 0.3.4 + - Minor bugfix, saving board settings with empty custom CSS was incorrectly returning an error if there were global filters for css. + ### 0.3.3 - Minor bugfix to filenames of expanded images being incorrectly truncated in some circumstances, when "image loading bars" is enabled. diff --git a/helpers/schema.js b/helpers/schema.js index 58324a15..b49bb809 100644 --- a/helpers/schema.js +++ b/helpers/schema.js @@ -49,12 +49,12 @@ module.exports = { //check if value is included in a set or array, usually for blacklist or whitelist inArrayBody: (data, list) => { - return data && list[list.constructor.name === 'Array' ? 'includes' : 'has'](data); + return data !== null && list[list.constructor.name === 'Array' ? 'includes' : 'has'](data); }, //the opposite kinda, check if the data includes any of the values in the array arrayInBody: (filters, data) => { - return data && filters.some(filter => data.includes(filter)); + return data !== null && filters.some(filter => data.includes(filter)); }, //check the actual schema