From 8b455af3817117a97e4b1b1bfeb20cd8a3412802 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Sun, 28 Mar 2021 02:03:19 +0300 Subject: [PATCH] [SSE] Refactoring pivot table --- apps/spreadsheeteditor/main/app/view/PivotSettings.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; });