From 2704b202bf87132bfd4219d80fe01842e102aa82 Mon Sep 17 00:00:00 2001 From: "Keith J. Grant" Date: Wed, 1 Jun 2022 10:36:06 -0700 Subject: [PATCH] check for is_tree flag from children summary response --- awx/ui/src/screens/Job/JobOutput/useJobEvents.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui/src/screens/Job/JobOutput/useJobEvents.js b/awx/ui/src/screens/Job/JobOutput/useJobEvents.js index c3f894279e..7566c1a915 100644 --- a/awx/ui/src/screens/Job/JobOutput/useJobEvents.js +++ b/awx/ui/src/screens/Job/JobOutput/useJobEvents.js @@ -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;