diff --git a/apps/spreadsheeteditor/main/app/view/PivotSettings.js b/apps/spreadsheeteditor/main/app/view/PivotSettings.js index 24a660a80..fabddb861 100644 --- a/apps/spreadsheeteditor/main/app/view/PivotSettings.js +++ b/apps/spreadsheeteditor/main/app/view/PivotSettings.js @@ -415,8 +415,8 @@ define([ models[index].set({ pivotIndex: pivotIndex, index : index, - value : name, - tip : (name.length>10) ? name : '' + value : name || '', + tip : (name && name.length>10) ? name : '' }); } else arr.push(new Common.UI.DataViewModel({ @@ -424,8 +424,8 @@ define([ allowSelected : false, pivotIndex : pivotIndex, index : index, - value : name, - tip : (name.length>10) ? name : '' + value : name || '', + tip : (name && name.length>10) ? name : '' })); isChecked[getNameFunction ? name : me._state.names[pivotIndex]] = true; });