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

fixed a bug, safeguard alerts being null

parent 621e5e3a
No related branches found
No related tags found
2 merge requests!497CE-2790: Prepare for 4.0.0,!490CE-2889: Modify ioc endpoints
......@@ -103,7 +103,8 @@ export const JobDetails = ({ operation, job }) => {
);
useEffect(() => {
setAlerts([createAlert(jobOperation, job), ...operation.alerts]);
const operationAlerts = operation.alerts ? operation.alerts : [];
setAlerts([createAlert(jobOperation, job), ...operationAlerts]);
}, [operation, job, jobOperation]);
return (
......
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