diff --git a/apps/spreadsheeteditor/main/app/controller/Search.js b/apps/spreadsheeteditor/main/app/controller/Search.js index f830b7c41..b327d9820 100644 --- a/apps/spreadsheeteditor/main/app/controller/Search.js +++ b/apps/spreadsheeteditor/main/app/controller/Search.js @@ -367,6 +367,7 @@ define([ }, onApiRemoveTextAroundSearch: function (arr) { + if (!this.resultItems) return; var me = this; arr.forEach(function (id) { var ind = _.findIndex(me.resultItems, {id: id});