diff --git a/src/components/HOCs/WithTaskBundle/WithTaskBundle.js b/src/components/HOCs/WithTaskBundle/WithTaskBundle.js index 5077a9777..2b11dc33d 100644 --- a/src/components/HOCs/WithTaskBundle/WithTaskBundle.js +++ b/src/components/HOCs/WithTaskBundle/WithTaskBundle.js @@ -4,12 +4,7 @@ import { bindActionCreators } from 'redux' import _omit from 'lodash/omit' import _get from 'lodash/get' import _isFinite from 'lodash/isFinite' -import { - bundleTasks, - deleteTaskBundle, - removeTaskFromBundle, - fetchTaskBundle -} from '../../../services/Task/Task' +import { bundleTasks, deleteTaskBundle, removeTaskFromBundle, fetchTaskBundle } from '../../../services/Task/Task' /** * WithTaskBundle passes down methods for creating new task bundles and @@ -151,9 +146,9 @@ export function WithTaskBundle(WrappedComponent) { } export const mapDispatchToProps = dispatch => bindActionCreators({ - bundleTasks, - deleteTaskBundle, - removeTaskFromBundle, + bundleTasks, + deleteTaskBundle, + removeTaskFromBundle, fetchTaskBundle, }, dispatch) diff --git a/src/services/Task/Task.js b/src/services/Task/Task.js index 26e03d38b..82af0e8d5 100644 --- a/src/services/Task/Task.js +++ b/src/services/Task/Task.js @@ -929,9 +929,9 @@ export const bundleTasks = function(taskIds, bundleTypeMismatch, bundleName="") } else { if (bundleTypeMismatch === "cooperative") { - dispatch(addError(AppErrors.task.bundleCooperative)); + dispatch(addError(AppErrors.task.bundleCooperative)) } else if (bundleTypeMismatch === "notCooperative") { - dispatch(addError(AppErrors.task.bundleNotCooperative)); + dispatch(addError(AppErrors.task.bundleNotCooperative)) } const errorMessage = await error.response.text()