Skip to content
Snippets Groups Projects
Commit 2890126c authored by Max Frederiksen's avatar Max Frederiksen Committed by Max Frederiksen
Browse files

Remove snackbar from start/stop errors

parent 2c03cb57
No related branches found
No related tags found
3 merge requests!542Prepare 4.1.0,!540Sync,!533CE-3015: Implement correct error handling for operation errors
Pipeline #197293 passed with warnings
......@@ -13,7 +13,6 @@ import AccessControl from "../../auth/AccessControl";
import { useNavigate } from "react-router-dom";
import { useStartOperationMutation } from "../../../store/deployApi";
import { getErrorMessage } from "../../common/Alerts/ApiAlertError";
import useCustomSnackbar from "../../common/snackbar";
export function IOCService({
ioc,
......@@ -24,7 +23,6 @@ export function IOCService({
jobLazyParams
}) {
const navigate = useNavigate();
const showWarning = useCustomSnackbar();
const [error, setError] = useState();
const [inProgress, setInProgress] = useState(false);
const [startModalOpen, setStartModalOpen] = useState(false);
......@@ -47,12 +45,6 @@ export function IOCService({
}
}, [jobData, command, currentCommand, navigate]);
useEffect(() => {
if (jobError) {
showWarning(getErrorMessage(jobError));
}
}, [jobError]);
const resetUI = useCallback(() => {
setCommand(null);
setError(null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment