Skip to content

Commit

Permalink
Set dateUploaded before rendering source metadata panel (#37 #517)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Mar 22, 2023
1 parent 5b6ac9f commit ab59b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/panel-source/source-metadata-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export default class MetadataPanel extends CompositeView {
const creatorId = creator.id || creator["@id"];
this.creator = getLabelFromId(creatorId);
this.userIsOwner = currentUserOwnsModel(model);
this.render();
this.dateUploaded =
this.model.attributes[
sourceOntology("dateUploaded")
][0].toLocaleDateString();
this.render();
}

onCloseClicked() {
Expand Down

0 comments on commit ab59b9a

Please sign in to comment.