From fd6a8a6c6a33df552058181062a40e13ace093f7 Mon Sep 17 00:00:00 2001 From: MichalKinas Date: Fri, 20 Dec 2024 13:33:45 +0100 Subject: [PATCH] [ACS-8863] Small fix --- .../src/lib/viewer/components/alfresco-viewer.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/content-services/src/lib/viewer/components/alfresco-viewer.component.ts b/lib/content-services/src/lib/viewer/components/alfresco-viewer.component.ts index b1dc5e652f..cd675b105e 100644 --- a/lib/content-services/src/lib/viewer/components/alfresco-viewer.component.ts +++ b/lib/content-services/src/lib/viewer/components/alfresco-viewer.component.ts @@ -336,7 +336,6 @@ export class AlfrescoViewerComponent implements OnChanges, OnInit { urlFileContent = urlFileContent + '&' + currentFileVersion; const fileExtension = this.viewUtilService.getFileExtension(versionData ? versionData.name : nodeData.name); - this.fileName = versionData ? versionData.name : nodeData.name; const viewerType = this.viewUtilService.getViewerType(fileExtension, mimeType); if (viewerType === 'unknown') { @@ -359,6 +358,7 @@ export class AlfrescoViewerComponent implements OnChanges, OnInit { this.mimeType = mimeType; this.nodeMimeType = nodeMimeType; + this.fileName = versionData ? versionData.name : nodeData.name; this.urlFileContent = urlFileContent + (this.cacheBusterNumber ? '&' + this.cacheBusterNumber : ''); this.sidebarRightTemplateContext.node = nodeData; this.sidebarLeftTemplateContext.node = nodeData;