Skip to content

Commit

Permalink
If there is no plan object, don't try to render the chart
Browse files Browse the repository at this point in the history
  • Loading branch information
shefalijoshi committed Oct 16, 2024
1 parent 12297a5 commit a1e8920
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/plan/components/PlanView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ export default {
return currentRow || SWIMLANE_PADDING;
},
generateActivities() {
if (!this.planObject) {
return;

Check warning on line 427 in src/plugins/plan/components/PlanView.vue

View check run for this annotation

Codecov / codecov/patch

src/plugins/plan/components/PlanView.vue#L427

Added line #L427 was not covered by tests
}
const groupNames = getValidatedGroups(this.planObject, this.planData);

if (!groupNames.length) {
Expand Down

0 comments on commit a1e8920

Please sign in to comment.