From f83b4e55b1faeca82029895a3ded4c9898773723 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Wed, 12 Oct 2022 18:38:21 +0300 Subject: [PATCH] [SSE] Fix search --- apps/spreadsheeteditor/main/app/controller/Search.js | 1 + 1 file changed, 1 insertion(+) 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});