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. <jamie.j.vigliotta@nasa.gov>
This commit is contained in:
Shefali Joshi 2024-10-17 10:28:55 -07:00 committed by GitHub
parent 7c2bb16bfd
commit 7f8b5e09e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;