New: Renamed Blacklist to Blocklist

This commit is contained in:
Robin Dadswell
2021-08-19 22:50:12 +01:00
committed by Qstick
parent 0a17b7e8ae
commit b46e2c6ad1
6 changed files with 20 additions and 20 deletions

View File

@@ -10,7 +10,7 @@ import {
import getSectionState from 'Utilities/State/getSectionState';
import updateSectionState from 'Utilities/State/updateSectionState';
const blacklistedProperties = [
const omittedProperties = [
'section',
'id'
];
@@ -31,7 +31,7 @@ export default function createHandleActions(handlers, defaultState, section) {
if (section === baseSection) {
const newState = Object.assign(getSectionState(state, payloadSection),
_.omit(payload, blacklistedProperties));
_.omit(payload, omittedProperties));
return updateSectionState(state, payloadSection, newState);
}