Skip to content

Commit

Permalink
Disable save button in case of dataset fatal error (#1958)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored Dec 18, 2024
1 parent 1c0cd70 commit be0d385
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/units/datasets/store/actions/creators/datasetTyped.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit be0d385

Please sign in to comment.