From 942bfbe659ef9bcbc71ceb5e8b254ca4ac3fbad8 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Sun, 2 Feb 2025 22:16:40 +0300 Subject: [PATCH] For bug 73025 --- apps/spreadsheeteditor/main/app/controller/Print.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Print.js b/apps/spreadsheeteditor/main/app/controller/Print.js index 77dfbafe07..2a07305a5f 100644 --- a/apps/spreadsheeteditor/main/app/controller/Print.js +++ b/apps/spreadsheeteditor/main/app/controller/Print.js @@ -955,7 +955,7 @@ define([ onApiChangePreviewSheet: function (index) { var item = this.printSettings.cmbSheet.store.findWhere({value: index}); - this.printSettings.updateActiveSheet(item.get('displayValue')); + item && this.printSettings.updateActiveSheet(item.get('displayValue')); if (this.notUpdateSheetSettings) { this.notUpdateSheetSettings = false;