From 7f8b5e09e5a750702e7252748203287ae26635b9 Mon Sep 17 00:00:00 2001 From: Shefali Joshi Date: Thu, 17 Oct 2024 10:28:55 -0700 Subject: [PATCH] Fix gantt chart swimlane order (#7895) * Use the planObject to get ordered swimlane names * If there is no plan object, don't try to render the chart --------- Co-authored-by: Jamie V. --- src/plugins/plan/components/PlanView.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/plan/components/PlanView.vue b/src/plugins/plan/components/PlanView.vue index 86a9f3cdf1..f54082b895 100644 --- a/src/plugins/plan/components/PlanView.vue +++ b/src/plugins/plan/components/PlanView.vue @@ -243,8 +243,8 @@ export default { if (this.planObject) { this.showReplacePlanDialog(domainObject); } else { - this.swimlaneVisibility = this.configuration.swimlaneVisibility; this.setupPlan(domainObject); + this.swimlaneVisibility = this.configuration.swimlaneVisibility; } }, handleConfigurationChange(newConfiguration) { @@ -423,7 +423,10 @@ export default { return currentRow || SWIMLANE_PADDING; }, generateActivities() { - const groupNames = getValidatedGroups(this.domainObject, this.planData); + if (!this.planObject) { + return; + } + const groupNames = getValidatedGroups(this.planObject, this.planData); if (!groupNames.length) { return;