From fe7b072fc8912a06b9dcba337271b2bb1afe199d Mon Sep 17 00:00:00 2001 From: Paul-DS Date: Mon, 25 Mar 2019 23:44:47 +0100 Subject: [PATCH] Fix a bug when updating the datasource using the setDataSource function --- src/ts/js-year-calendar.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ts/js-year-calendar.ts b/src/ts/js-year-calendar.ts index 7af885d..ff6e701 100644 --- a/src/ts/js-year-calendar.ts +++ b/src/ts/js-year-calendar.ts @@ -1602,6 +1602,7 @@ export default class Calendar { }); } else { + this._dataSource = this.options.dataSource; this._initializeDatasourceColors(); if (!preventRendering) { this.render();