Skip to content

Commit

Permalink
πŸ‘” Conditional export json data in view iscn
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Jan 20, 2025
1 parent 29d6405 commit 9d83297
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/view/_iscnId/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -899,14 +899,16 @@ export default class ViewIscnIdPage extends Vue {
handleClickDownload() {
logTrackerEvent(this, 'ISCNView', 'ClickDownload', this.iscnId, 1)
const { sameAs, metadata } = this.metadata
const generateData = {
contentMetadata: {
...this.metadata,
...metadata,
sameAs: this.isIscnOwner ? sameAs : undefined,
'@type': this.type,
'@context': "http://schema.org/",
},
stakeholders: this.recordData?.stakeholders,
contentFingerprints: this.recordData.contentFingerprints,
contentFingerprints: this.isIscnOwner ? this.recordData.contentFingerprints : undefined,
recordNotes: '',
}
Expand Down

0 comments on commit 9d83297

Please sign in to comment.