Merge branch 'development'
This commit is contained in:
commit
9e12d0ff23
@ -89,13 +89,12 @@ export default async function (this: ICalculationStore) {
|
|||||||
this.setOptions('selectQuote', quotes);
|
this.setOptions('selectQuote', quotes);
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
const { response } = err as AxiosError;
|
||||||
|
|
||||||
openNotification({
|
openNotification({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
message: 'Ошибка во время создания КП!',
|
message: 'Ошибка во время создания КП!',
|
||||||
|
description: response?.data?.message,
|
||||||
});
|
});
|
||||||
|
|
||||||
const { response } = err as AxiosError;
|
|
||||||
const error = response?.data || err;
|
|
||||||
throw JSON.stringify(error);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user