From b9a0bad51f3790bffd9f32216c0b199c2ac6cba5 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 19 Feb 2024 18:05:17 +0300 Subject: [PATCH] Fix Bug 66574 --- apps/common/main/lib/view/Header.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/common/main/lib/view/Header.js b/apps/common/main/lib/view/Header.js index 44ab50c734..dd04316676 100644 --- a/apps/common/main/lib/view/Header.js +++ b/apps/common/main/lib/view/Header.js @@ -787,8 +787,7 @@ define([ this.documentCaption = value; var idx = this.documentCaption.lastIndexOf('.'); - if (idx>0) - this.fileExtention = this.documentCaption.substring(idx); + this.fileExtention = idx>0 ? this.documentCaption.substring(idx) : ''; this.isModified && (value += '*'); this.readOnly && (value += ' (' + this.textReadOnly + ')'); if ( $labelDocName ) {