From ab59b9a4792e1c48d1f67a210eb7158e74dc18fe Mon Sep 17 00:00:00 2001 From: Julian Gonggrijp Date: Wed, 22 Mar 2023 15:53:21 +0100 Subject: [PATCH] Set dateUploaded before rendering source metadata panel (#37 #517) --- frontend/src/panel-source/source-metadata-panel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/panel-source/source-metadata-panel.ts b/frontend/src/panel-source/source-metadata-panel.ts index b4eeefc3..1fbb3dd2 100644 --- a/frontend/src/panel-source/source-metadata-panel.ts +++ b/frontend/src/panel-source/source-metadata-panel.ts @@ -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() {