Skip to content

Commit

Permalink
Fix for uploading dateless objects
Browse files Browse the repository at this point in the history
  • Loading branch information
dmf444 committed Feb 15, 2024
1 parent db3782e commit a63af2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/FileUploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class FileUploader {
if (!this.file.fileMetadata.descriptionVersion.startsWith("1")) {
data.set('page_count', this.file.fileMetadata.pageCount);
}
data.set('date', this.file.fileMetadata.date);
data.set('date', this.file.fileMetadata.date ?? "");
data.set('restriction', this.file.fileMetadata.restrictions);
if(this.file.fileMetadata.tags.length == 0) {
data.append('tags[]', []);
Expand Down

0 comments on commit a63af2c

Please sign in to comment.