From 4b5f86f75de29315fed8e139841a66c3177268b9 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 8 Jun 2021 19:12:38 +0300 Subject: [PATCH] [SSE mobile] Fix bug 50765 --- apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx b/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx index 778eaeb84..6ca23f1da 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Statusbar.jsx @@ -56,9 +56,10 @@ const Statusbar = inject('sheets', 'storeAppOptions', 'users')(props => { }, []); const onApiActiveSheetChanged = (index) => { - // console.log(index); - sheets.setActiveWorksheet(index); - Common.Notifications.trigger('sheet:active', index); + if (index < sheets.sheets.length) { + sheets.setActiveWorksheet(index); + Common.Notifications.trigger('sheet:active', index); + } } const onApiHideTabContextMenu = () => {