remove unnecessary fetches

This commit is contained in:
Sebastian Sdorra
2018-08-30 10:10:41 +02:00
parent eb207cecfd
commit e3b6b6c18f
2 changed files with 3 additions and 9 deletions

View File

@@ -132,6 +132,7 @@ function removeNullValues(config: Config) {
function reducer(state: any = {}, action: any = {}) {
switch (action.type) {
case MODIFY_CONFIG_SUCCESS:
case FETCH_CONFIG_SUCCESS:
const config = removeNullValues(action.payload);
return {