diff --git a/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js b/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js index de158bbb2..24f899200 100644 --- a/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js +++ b/apps/spreadsheeteditor/main/app/view/ProtectRangesDlg.js @@ -297,7 +297,7 @@ define([ 'text!spreadsheeteditor/main/app/template/ProtectRangesDlg.template', !rec.get('isNew') && this.deletedArr.push(rec.get('props')); var index = store.indexOf(rec); store.remove(rec); - (this.rangeList.length>0) && this.rangeList.selectByIndex(index); + (store.length>0) && this.rangeList.selectByIndex(index); this.rangeList.scrollToRecord(this.rangeList.getSelectedRec()); } this.updateButtons();