mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 06:51:23 +08:00
fix: added check if file have no app version
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user