Skip to content
This repository has been archived by the owner on Jun 22, 2023. It is now read-only.

Commit

Permalink
fix(json-ld): Delete additionalType after it has been hoisted to @type
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed Jun 28, 2021
1 parent 5a6bdb8 commit abce56e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/helpers/transformers.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const transformJsonLD = (type, data) => {
// the values are valid URLs.
if (Array.isArray(data.additionalType)) {
jsonLdData['@type'] = [...jsonLdData['@type'], ...data.additionalType]
delete data.additionalType;
}

// Iterate all keys in the data document
Expand Down

0 comments on commit abce56e

Please sign in to comment.