Port plugins

This commit is contained in:
Chi Vinh Le
2018-01-23 20:06:55 +01:00
parent b196bb379a
commit 59cdc9fd5d
9 changed files with 39 additions and 68 deletions
+1 -7
View File
@@ -9,11 +9,7 @@ import withFragments from 'coral-framework/hocs/withFragments';
import withMutation from 'coral-framework/hocs/withMutation';
import { notify } from 'coral-framework/actions/notification';
import { capitalize } from 'coral-framework/helpers/strings';
import {
getMyActionSummary,
getTotalActionCount,
getErrorMessages,
} from 'coral-framework/utils';
import { getMyActionSummary, getTotalActionCount } from 'coral-framework/utils';
import hoistStatics from 'recompose/hoistStatics';
import * as PropTypes from 'prop-types';
import { getDefinitionName } from '../utils';
@@ -282,7 +278,6 @@ export default (reaction, options = {}) =>
})
.catch(err => {
this.duringMutation = false;
this.props.notify('error', getErrorMessages(err));
throw err;
});
};
@@ -307,7 +302,6 @@ export default (reaction, options = {}) =>
})
.catch(err => {
this.duringMutation = false;
this.props.notify('error', getErrorMessages(err));
throw err;
});
};