[ACS-8644] Fixed issue where download button and comments section was missing on manage versions dialog (#10119)

This commit is contained in:
swapnil-verma-gl
2024-08-26 22:35:38 +05:30
committed by GitHub
parent b1f59facf3
commit 4a18be06b1

View File

@@ -52,7 +52,9 @@ export class NewVersionUploaderService {
config?: MatDialogConfig,
selectorAutoFocusedOnClose?: string
): Observable<NewVersionUploaderData> {
const { file, node, showVersionsOnly, showComments, allowDownload } = data;
const { file, node, showVersionsOnly } = data;
const allowDownload = data.allowDownload ?? true;
const showComments = data.showComments ?? true;
return new Observable((observer) => {
this.versionsApi.listVersionHistory(node.id).then((versionPaging) => {