Merge pull request #12287 from fosterseth/fix_children_summary_not_tree

detect if job events are tree-like and collapsible
This commit is contained in:
Seth Foster
2022-06-13 14:27:39 -04:00
committed by GitHub
3 changed files with 80 additions and 4 deletions

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;