fix: added check if file have no app version

This commit is contained in:
levtarasovv
2025-05-23 13:28:11 +04:00
parent 313d5ab8a1
commit 15fdcc7622

View File

@ -26,10 +26,17 @@ class PresentationInfoController extends Component {
getAppProps() {
const api = Common.EditorApi.get();
const appProps = api.asc_getAppProps();
let appName = "";
if (appProps) {
return `${!appProps.asc_getApplication() ? '' : appProps.asc_getApplication() + ' ' + appProps.asc_getAppVersion()}`;
appName = appProps.asc_getApplication();
if (appName && appProps.asc_getAppVersion()) {
appName += ` ${appProps.asc_getAppVersion()}`;
}
}
return appName;
}
getModified() {