Skip to content

Commit

Permalink
build: fix build error(NG-ZORRO#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
kekehaoz committed Mar 20, 2019
1 parent 5abaeaa commit ec7a3be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/time-picker/nz-time-picker-panel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export class NzTimePickerPanelComponent implements ControlValueAccessor, OnInit,
} else if (unit === 'minute') {
const disabledMinutes = this.nzDisabledMinutes && this.nzDisabledMinutes(this.time.hours!);
return this.calcIndex(disabledMinutes, this.minuteRange.map(item => item.index).indexOf(index));
} else { // second
} else if (unit === 'second') { // second
const disabledSeconds = this.nzDisabledSeconds && this.nzDisabledSeconds(this.time.hours!, this.time.minutes!);
return this.calcIndex(disabledSeconds, this.secondRange.map(item => item.index).indexOf(index));
} else if (unit === '12-hour') {
Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/time-holder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ export class TimeHolder {
}

setValue(value: Date | undefined, use12Hours?: boolean): this {
this._use12Hours = use12Hours;
if (isNotNil(use12Hours)) {
this._use12Hours = use12Hours;
}
this.value = value;
return this;
}
Expand Down

0 comments on commit ec7a3be

Please sign in to comment.