fix: estimate entries & floatingAction.

This commit is contained in:
elforjani3
2021-02-20 17:28:11 +02:00
parent 4b0c266f34
commit 10637984fa
4 changed files with 15 additions and 9 deletions

View File

@@ -21,10 +21,7 @@ import withSettings from 'containers/Settings/withSettings';
import { AppToaster } from 'components';
import { ERROR } from 'common/errors';
import {
compose,
orderingLinesIndexes,
} from 'utils';
import { compose, orderingLinesIndexes } from 'utils';
import { useEstimateFormContext } from './EstimateFormProvider';
import { transformToEditForm, defaultEstimate } from './utils';
@@ -55,7 +52,7 @@ function EstimateForm({
() => ({
...(!isEmpty(estimate)
? {
...transformToEditForm(estimate)
...transformToEditForm(estimate),
}
: {
...defaultEstimate,
@@ -126,7 +123,11 @@ function EstimateForm({
}
};
const onError = (errors) => {
const onError = ({
response: {
data: { errors },
},
}) => {
if (errors) {
handleErrors(errors, { setErrors });
}