diff --git a/client/modules/crm/src/views/calendar/calendar.js b/client/modules/crm/src/views/calendar/calendar.js index 15a3492984..c3ab16c197 100644 --- a/client/modules/crm/src/views/calendar/calendar.js +++ b/client/modules/crm/src/views/calendar/calendar.js @@ -158,10 +158,6 @@ Espo.define('crm:views/calendar/calendar', ['view', 'lib!full-calendar'], functi if (Object.prototype.toString.call(this.enabledScopeList) !== '[object Array]') { this.enabledScopeList = []; } - - this.once('remove', function () { - this.isRemoved = true; - }, this); }, toggleScopeFilter: function (name) { @@ -380,7 +376,7 @@ Espo.define('crm:views/calendar/calendar', ['view', 'lib!full-calendar'], functi }, adjustSize: function () { - if (this.isRemoved) return; + if (this.isRemoved()) return; var height = this.getCalculatedHeight(); this.$calendar.fullCalendar('option', 'contentHeight', height); },