From 4da024e203352bb5011c1b2534b6e51becf83154 Mon Sep 17 00:00:00 2001 From: Allard Brand Date: Thu, 15 Aug 2019 16:55:43 +0200 Subject: [PATCH] Fix context error in updateButtonTitle Fixes *.*.dropdownDivConverter1: Error while applying context TypeError: Cannot read property 'get' of null --- src/DropdownDivConverter/widget/DropdownDivConverter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DropdownDivConverter/widget/DropdownDivConverter.js b/src/DropdownDivConverter/widget/DropdownDivConverter.js index ea5760e..9b66999 100644 --- a/src/DropdownDivConverter/widget/DropdownDivConverter.js +++ b/src/DropdownDivConverter/widget/DropdownDivConverter.js @@ -281,7 +281,7 @@ define([ // update the dynamic button title _updateButtonTitle: function() { this._buttonLabel = this.buttonTitle; - if (this._dynamicLabel) { + if (this._dynamicLabel && this._contextObj) { this._buttonLabel = this._contextObj.get(this.dynamicButtonTitleAttribute); } },