Skip to content
Snippets Groups Projects
Commit f7690720 authored by Johanna Szepanski's avatar Johanna Szepanski
Browse files

Merge branch 'CE-3295-exhaustive-deps-warnings' into 'develop'

CE-3295: Fixed exhaustive deps warnings

See merge request !560
parents 5365c345 ac8d9347
No related branches found
No related tags found
2 merge requests!612Release 5.0.0,!560CE-3295: Fixed exhaustive deps warnings
Pipeline #205157 passed
......@@ -46,7 +46,14 @@ export default function IOCDelete({ ioc, buttonDisabled, setButtonDisabled }) {
showSnackBar(`IOC ${ioc.namingName} deleted`, "success");
navigate("/iocs");
}
}, [dataready, navigate, error, setButtonDisabled]);
}, [
dataready,
navigate,
error,
setButtonDisabled,
ioc.namingName,
showSnackBar
]);
let disabledButtonTitle = "";
......
......@@ -109,7 +109,7 @@ export function IOCDeployDialog({
if (!hasHostData && query && query.length > 2) {
getHosts({ text: `${query}` });
}
}, [query, getHosts]);
}, [query, getHosts, hasHostData]);
useEffect(() => {
getTagOrCommitIds(gitProjectId, "", "CONTAINS");
......
......@@ -36,7 +36,7 @@ export function IOCService({
setError(jobError);
setButtonDisabled(false);
}
}, [jobError]);
}, [jobError, setButtonDisabled]);
useEffect(() => {
if (jobData && (!command || command.id !== jobData.id)) {
......@@ -74,7 +74,8 @@ export function IOCService({
jobLazyParams,
resetUI,
setButtonDisabled,
startJob
startJob,
ioc.id
]);
const stop = useCallback(() => {
......@@ -99,7 +100,8 @@ export function IOCService({
jobLazyParams,
resetUI,
setButtonDisabled,
startJob
startJob,
ioc.id
]);
const onStartModalClose = useCallback(() => {
......
......@@ -39,7 +39,7 @@ export const IOCStatus = ({ id, hideAlerts }) => {
return () => {
abortCallFetchIocAlerts();
};
}, [iocStateStatus, hideAlerts]);
}, [hideAlerts, abortCallFetchIocAlerts, callFetchIocAlerts]);
return (
<Grid
......
......@@ -66,7 +66,7 @@ export const LogStreamConsole = ({
});
}
}
}, [dataReady]);
}, [dataReady, autoScrollEnabled, handleScroll, log]);
return (
<>
......
......@@ -24,7 +24,7 @@ export function Status({ state, alert, hideAlerts = false, getStatusFcn }) {
if (state) {
setStatus(getStatusFcn(state, alert));
}
}, [state, alert]);
}, [state, alert, getStatusFcn]);
return (
<>
......
......@@ -37,7 +37,7 @@ export const HostStatus = ({ hostId, hideAlerts }) => {
return () => {
abortCallFetchHostAlerts();
};
}, [hostStateStatus, hideAlerts]);
}, [hideAlerts, callFetchHostAlerts, abortCallFetchHostAlerts]);
return (
<Status
......
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