From 6934263f712e06966d4f5b7b4b00b6bd7b39a3ad Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 8 May 2017 15:59:52 -0300 Subject: [PATCH] =?UTF-8?q?=C3=81dding=20uuid=20v4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/coral-framework/hocs/withReaction.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/coral-framework/hocs/withReaction.js b/client/coral-framework/hocs/withReaction.js index 992ab7854..db17f62d1 100644 --- a/client/coral-framework/hocs/withReaction.js +++ b/client/coral-framework/hocs/withReaction.js @@ -1,5 +1,6 @@ import React from 'react'; import get from 'lodash/get'; +import uuid from 'uuid/v4'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {compose, gql, graphql} from 'react-apollo'; @@ -133,7 +134,7 @@ export default reaction => WrappedComponent => { errors: null, [reaction]: { __typename: `${capitalize(reaction)}Action`, - id: 'pending' + id: uuid() } } },