Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular2Guy committed Jun 17, 2023
1 parent e344b69 commit bde4ca5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
import { EventEmitter } from '@angular/core';

export class ChartItem<T extends Event> {
id: number;
lineId: string;
name: string;
details: string;
start: Date;
end: Date;
id: number = -1;
lineId: string = '';
name: string = '';
details: string = '';
start: Date | null = null;
end: Date | null = null;
eventEmitter = new EventEmitter<T>();
cssClass = '';
headerAnchorId = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import { ChartItem } from './model/chart-item';

export class ScDateTimeChartBase {
protected localStart = new Date();
protected localShowDays: boolean;
protected end: Date;
protected localShowDays: boolean = false;
protected end: Date | null = null;
protected localItems: ChartItem<Event>[] = [];
protected periodDays: DateTime[] = [];
protected periodMonths: DateTime[] = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export class ScDateTimeChartComponent
protected readonly CURRENT_TIME = 'currentTime';

@ViewChild('timeChart')
private timeChartRef: ElementRef;
private timeChartRef: ElementRef | null = null;
@ViewChild('headerLine')
private headerLineRef: ElementRef;
private headerLineRef: ElementRef | null = null;

constructor(@Inject(LOCALE_ID) locale: string) {
super(locale);
Expand Down Expand Up @@ -210,7 +210,7 @@ export class ScDateTimeChartComponent
? []
: lineKeyToItems.get(myItem.lineId);
myItems?.push(myItem);
lineKeyToItems.set(myItem.lineId, myItems);
lineKeyToItems.set(myItem.lineId, myItems as ChartItem<Event>[]);
});
for (; this.lineKeyToItems.length > 0; this.lineKeyToItems.pop()) {}
for (let key of lineKeyToItems.keys()) {
Expand Down

0 comments on commit bde4ca5

Please sign in to comment.