Skip to content

Commit 7f8b5e0

Browse files
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. <[email protected]>
1 parent 7c2bb16 commit 7f8b5e0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/plugins/plan/components/PlanView.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ export default {
243243
if (this.planObject) {
244244
this.showReplacePlanDialog(domainObject);
245245
} else {
246-
this.swimlaneVisibility = this.configuration.swimlaneVisibility;
247246
this.setupPlan(domainObject);
247+
this.swimlaneVisibility = this.configuration.swimlaneVisibility;
248248
}
249249
},
250250
handleConfigurationChange(newConfiguration) {
@@ -423,7 +423,10 @@ export default {
423423
return currentRow || SWIMLANE_PADDING;
424424
},
425425
generateActivities() {
426-
const groupNames = getValidatedGroups(this.domainObject, this.planData);
426+
if (!this.planObject) {
427+
return;
428+
}
429+
const groupNames = getValidatedGroups(this.planObject, this.planData);
427430
428431
if (!groupNames.length) {
429432
return;

0 commit comments

Comments
 (0)