Skip to content

Commit

Permalink
fix: 🐛修正表头缺失日期
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjone committed Apr 29, 2023
1 parent a5bc73b commit 6926dcd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/models/param/header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ class GanttHeader extends Header {
)
);
i++;
} else {
if (!columns[i].children) {
columns[i].children = [];
}
}

columns[i].children?.push(new GanttColumn(date, this.unit));
if (!columns[i].children) {
columns[i].children = [];
}

columns[i].children?.push(new GanttColumn(date, this.unit));
});

this.headers = this.convertToRows(columns, this.getAllColumns(columns));
Expand Down

0 comments on commit 6926dcd

Please sign in to comment.