check for is_tree flag from children summary response

This commit is contained in:
Keith J. Grant
2022-06-01 10:36:06 -07:00
committed by Seth Foster
parent 550d9d5e42
commit 2704b202bf

View File

@@ -56,7 +56,8 @@ export default function useJobEvents(callbacks, jobId, isFlatMode) {
callbacks
.fetchChildrenSummary()
.then((result) => {
if (result.data.event_processing_finished === false) {
const { event_processing_finished, is_tree } = result.data;
if (event_processing_finished === false || is_tree === false) {
callbacks.setForceFlatMode(true);
callbacks.setJobTreeReady();
return;