Merge branch 'development'

This commit is contained in:
Chika 2022-12-09 12:28:48 +03:00
commit 9e12d0ff23

View File

@ -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);
} }
} }