Skip to content

Commit

Permalink
Fix gantt chart swimlane order (#7895)
Browse files Browse the repository at this point in the history
* 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. <[email protected]>
  • Loading branch information
shefalijoshi and jvigliotta authored Oct 17, 2024
1 parent 7c2bb16 commit 7f8b5e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plugins/plan/components/PlanView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7f8b5e0

Please sign in to comment.