From 4606d96c88506c2f752674464682edd2fc3e4539 Mon Sep 17 00:00:00 2001 From: goodmice Date: Mon, 18 Jul 2022 12:03:11 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=87=D0=B8?= =?UTF-8?q?=D0=BA=20=D0=BF=D0=BE=20=D0=BD=D0=B0=D0=B6=D0=B0=D1=82=D0=B8?= =?UTF-8?q?=D1=8E=20=D0=BD=D0=B0=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D1=83=20?= =?UTF-8?q?=D1=81=D0=B1=D1=80=D0=BE=D1=81=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=B2=20=D0=9F=D0=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/DrillingProgram/index.jsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/DrillingProgram/index.jsx b/src/pages/DrillingProgram/index.jsx index 1fe11a8..a5b9f84 100755 --- a/src/pages/DrillingProgram/index.jsx +++ b/src/pages/DrillingProgram/index.jsx @@ -99,6 +99,15 @@ const DrillingProgram = memo(() => { updateData() }, [updateData]) + const clearError = useCallback(() => invokeWebApiWrapperAsync( + async () => { + await DrillingProgramService.clearError(idWell) + await updateData() + }, + setShowLoader, + `Не удалось сбросить ошибку формирования программы бурения для скважины ${idWell}` + ), [idWell]) + return ( @@ -131,7 +140,7 @@ const DrillingProgram = memo(() => { {error?.message ?? state.text} -