Skip to content

Commit

Permalink
Make null check client side
Browse files Browse the repository at this point in the history
  • Loading branch information
nakedmcse committed Mar 4, 2024
1 parent dc91696 commit 320a957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/model/rest/FileEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class FileEntry {
if (expiresIn !== null) {
fileEntryBuilder.expires(ObjectUtils.timeToHuman(expiresIn));
} else {
fileEntryBuilder.expires("N/A");
fileEntryBuilder.expires(null);
}
return fileEntryBuilder.build();
}
Expand Down
2 changes: 1 addition & 1 deletion src/public/secure/files.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
{data: 'fileExtension', className: 'col-fileext'},
{data: 'fileSize', render: sizeAsMB()},
{data: 'createdAt', render: customDate()},
{data: 'expires'},
{data: 'expires', render: renderNullField()},
{data: 'mediaType', render: renderNullField()},
{data: 'originalFileName'},
{data: 'url'},
Expand Down

0 comments on commit 320a957

Please sign in to comment.