UI Formatting Cleanup

This commit is contained in:
Qstick
2017-10-07 02:21:06 -04:00
parent b963f2aa82
commit 52e3d96f4a
110 changed files with 901 additions and 701 deletions
@@ -2,28 +2,6 @@ import _ from 'lodash';
import getSectionState from 'Utilities/State/getSectionState';
import updateSectionState from 'Utilities/State/updateSectionState';
const whitelistedProperties = [
'isFetching',
'isPopulated',
'error',
'isFetchingSchema',
'schemaPopulated',
'schemaError',
'schema',
'selectedSchema',
'isSaving',
'saveError',
'isTesting',
'isDeleting',
'deleteError',
'pendingChanges',
'filterKey',
'filterValue',
'page',
'sortKey',
'sortDirection'
];
const blacklistedProperties = [
'section',
'id'
@@ -33,7 +11,7 @@ function createSetReducer(section) {
return (state, { payload }) => {
if (section === payload.section) {
const newState = Object.assign(getSectionState(state, section),
_.omit(payload, blacklistedProperties));
_.omit(payload, blacklistedProperties));
return updateSectionState(state, section, newState);
}