Skip to content

Commit

Permalink
[ACS-8863] Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKinas committed Dec 20, 2024
1 parent a9bf66b commit fd6a8a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand All @@ -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;
Expand Down

0 comments on commit fd6a8a6

Please sign in to comment.