wappsto-redux
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "wappsto-redux", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,4 +12,10 @@ import { | ||
case ADD_ITEM: | ||
let data; | ||
if(action.data.constructor === Function){ | ||
data = action.data(state[action.name]); | ||
} else { | ||
data = action.data; | ||
} | ||
return Object.assign({}, state, { | ||
[action.name]: action.data | ||
[action.name]: data | ||
}); | ||
@@ -20,2 +26,4 @@ case REMOVE_ITEM: | ||
return state; | ||
default: | ||
break; | ||
} | ||
@@ -22,0 +30,0 @@ return state; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43981
1079