[DE] Form settings: fix updating keys
This commit is contained in:
parent
41504eb6a9
commit
a9ea2456f0
|
@ -662,7 +662,7 @@ define([
|
|||
this.labelFormName.text(this.textImage);
|
||||
} else
|
||||
data = this.api.asc_GetTextFormKeys();
|
||||
if (!this._state.arrKey || _.difference(this._state.arrKey, data).length>0 || this.forceUpdate) {
|
||||
if (!this._state.arrKey || this._state.arrKey.length!==data.length || _.difference(this._state.arrKey, data).length>0 || this.forceUpdate) {
|
||||
var arr = [];
|
||||
data.forEach(function(item) {
|
||||
arr.push({ displayValue: item, value: item });
|
||||
|
@ -694,7 +694,7 @@ define([
|
|||
var ischeckbox = (typeof val !== 'string');
|
||||
if (!ischeckbox) {
|
||||
data = this.api.asc_GetRadioButtonGroupKeys();
|
||||
if (!this._state.arrGroupKey || _.difference(this._state.arrGroupKey, data).length>0 || this.forceUpdate) {
|
||||
if (!this._state.arrGroupKey || this._state.arrGroupKey.length!==data.length || _.difference(this._state.arrGroupKey, data).length>0 || this.forceUpdate) {
|
||||
var arr = [];
|
||||
data.forEach(function(item) {
|
||||
arr.push({ displayValue: item, value: item });
|
||||
|
|
Loading…
Reference in a new issue