From be0d3852fa580dbafb584ea489fadad705f55e83 Mon Sep 17 00:00:00 2001 From: "Mr.Dr.Professor Patrick" Date: Wed, 18 Dec 2024 16:38:51 +0100 Subject: [PATCH] Disable save button in case of dataset fatal error (#1958) --- src/ui/units/datasets/store/actions/creators/datasetTyped.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/units/datasets/store/actions/creators/datasetTyped.ts b/src/ui/units/datasets/store/actions/creators/datasetTyped.ts index 3716866491..b03d5757cc 100644 --- a/src/ui/units/datasets/store/actions/creators/datasetTyped.ts +++ b/src/ui/units/datasets/store/actions/creators/datasetTyped.ts @@ -792,6 +792,8 @@ export function validateDataset({compareContent, initial = false}: ValidateDatas if (!initial && error.status === 400 && activateSaveButton && !isFatalError) { dispatch(toggleSaveDataset({enable: true})); + } else if (isFatalError) { + dispatch(toggleSaveDataset({enable: false})); } dispatch({