From 31241227e1ccbf15af99c718e48491d92922eccd Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 13 Aug 2020 14:35:09 +0200 Subject: [PATCH] * File Sharing: fix broken file sharing dialog --- api/js/etemplate/et2_extension_nextmatch.js | 3 ++- api/js/etemplate/et2_extension_nextmatch.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index cdf89e6915..a0a6f8bc93 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -1540,7 +1540,8 @@ var et2_nextmatch = /** @class */ (function (_super) { et2_nextmatch.prototype.set_disable_autorefresh = function (disabled) { this.options.disable_autorefresh = disabled; //@todo remove it after finding a right fix - this.controller.set_disable_autorefresh(disabled); + if (this.controller) + this.controller.set_disable_autorefresh(disabled); this._set_autorefresh(this._get_autorefresh()); }; /** diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index 1ca91eb610..2d1b9c5c11 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -2106,7 +2106,7 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2 { this.options.disable_autorefresh = disabled; //@todo remove it after finding a right fix - this.controller.set_disable_autorefresh(disabled); + if (this.controller) this.controller.set_disable_autorefresh(disabled); this._set_autorefresh(this._get_autorefresh()); }