From 261692177dba6ef84baaaf650c68fbf02d902619 Mon Sep 17 00:00:00 2001 From: mikheykinnv Date: Tue, 25 Jun 2024 11:08:23 +0300 Subject: [PATCH] MSP-3347 add handle error --- src/pages/ConfigurationEditorPage/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/ConfigurationEditorPage/index.tsx b/src/pages/ConfigurationEditorPage/index.tsx index 75f82a3..919db11 100644 --- a/src/pages/ConfigurationEditorPage/index.tsx +++ b/src/pages/ConfigurationEditorPage/index.tsx @@ -92,8 +92,8 @@ const ConfigurationEditorPage: FC = () => { createUpdateConfig(cleanEmptyParamsObject(newData)) .unwrap() .then(({ id }) => { - message.success('Конфигурация успешно сохранена') isNew && navigate(`/${moduleId}/configEditor/${id}`) + message.success('Конфигурация успешно сохранена') }) .catch((e) => { if (e.data.errorCode === 2004) { @@ -105,6 +105,7 @@ const ConfigurationEditorPage: FC = () => { if (e.data.errorCode === 400) { message.error('Невалидный JSON объект') } + message.error('Ошибка обновления элемента') }) }