Merge pull request #437 from thomasync/fix-today-button
fix: check if today_button is defined before use it
This commit is contained in:
commit
b834da1ad5
@ -540,7 +540,9 @@ export default class Gantt {
|
||||
'px';
|
||||
|
||||
// Update the left value on page resize
|
||||
this.$today_button.style.left = `${containerRect.left + 20}px`;
|
||||
if (this.$today_button) {
|
||||
this.$today_button.style.left = `${containerRect.left + 20}px`;
|
||||
}
|
||||
}
|
||||
|
||||
make_grid_ticks() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user