소스 검색

dont render nowIndicator if not ready

Adam Shaw 8 년 전
부모
커밋
259705f287
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/agenda/TimeGrid.ts

+ 6 - 0
src/agenda/TimeGrid.ts

@@ -410,6 +410,12 @@ export default class TimeGrid extends InteractiveDateComponent {
 
 
 	renderNowIndicator(date) {
+
+		// HACK: if date columns not ready for some reason (scheduler)
+		if (!this.colContainerEls) {
+			return;
+		}
+
 		// seg system might be overkill, but it handles scenario where line needs to be rendered
 		//  more than once because of columns with the same date (resources columns for example)
 		var segs = this.componentFootprintToSegs(