Skip to content

Commit b9c194b

Browse files
committed
fix type error
1 parent 42c8bb1 commit b9c194b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/devextreme/js/__internal/ui/gantt/ui.gantt.view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ export class GanttView extends Widget<GanttViewProperties> {
568568
if (date) {
569569
const globalDateTimeFormat = getGlobalFormatByDataType('datetime');
570570
if (globalDateTimeFormat) {
571-
result = dateLocalization.format(date, globalDateTimeFormat);
571+
result = String(dateLocalization.format(date, globalDateTimeFormat) ?? '');
572572
} else {
573573
const datePart = dateLocalization.format(date, 'shortDate');
574574
const timeFormat = this._hasAmPM() ? 'hh:mm a' : 'HH:mm';

0 commit comments

Comments
 (0)