Skip to content

Commit

Permalink
Merge pull request #355 from linglp/set-version-number-optional
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgros authored Jul 7, 2023
2 parents e059b2c + d8ece93 commit 81487b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export default function DownloadListTable(props: DownloadListTableProps) {
associatedObjectType={
FileHandleAssociateType.FileEntity
}
entityVersionNumber={item.versionNumber.toString()}
entityVersionNumber={item.versionNumber?.toString()}
displayFileName={false}
onClickCallback={(isExternalLink: boolean) => {
// SWC-5944: remove the item from the download list, unless it's an external link.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export type DownloadListItemResult = {
createdOn: string //The date-time when this file was created.
fileSizeBytes: number //The size of the file in bytes.
fileEntityId: string //The 'syn' identifier of a file entity.
versionNumber: number //When included, indicates that a specific version of a files was added to the user's download list. When excluded, the current version was added.
versionNumber?: number //When included, indicates that a specific version of a files was added to the user's download list. When excluded, the current version was added.
isEligibleForPackaging: boolean //Only files that are managed by Synapse storage are eligible for packaging into a zip file. If true, then the file is eligible for packaging into a zip file.
}

0 comments on commit 81487b4

Please sign in to comment.