Skip to content

Commit

Permalink
fix(Action): redux isPlainObject doesn't accept bare objects (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
hitmands committed May 22, 2018
1 parent 4e8d749 commit 5ad16c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Action/Action.js
Expand Up @@ -18,7 +18,7 @@ export default function ActionCreatorFactory(rawType, payloadCreator, metaCreato
const mCreator = metaCreator || identity;

function actionCreator(rawPayload, rawMeta) {
const action = Object.create(null);
const action = {};

const payload = pCreator(rawPayload) || null;
const meta = mCreator(rawMeta) || null;
Expand Down

0 comments on commit 5ad16c5

Please sign in to comment.