Skip to content

Commit

Permalink
Merge pull request #1170 from IntersectMBO/fix/1169-wrong-references-…
Browse files Browse the repository at this point in the history
…object-keys-in-metadata

fix/1169-wrong-references-object-keys-in-metadata
  • Loading branch information
Sworzen1 authored Jun 5, 2024
2 parents 213df3c + d0bbb84 commit d475828
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions govtool/frontend/src/utils/generateMetadataBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export const generateMetadataBody = ({
.filter((link) => link.link)
.map((link) => ({
"@type": "Other",
[`${standardReference}reference-label`]: "Label",
[`${standardReference}reference-uri`]: link.link,
[`${CIP_100}reference-label`]: "Label",
[`${CIP_100}reference-uri`]: link.link,
}))
: undefined;

Expand Down
8 changes: 4 additions & 4 deletions govtool/frontend/src/utils/tests/generateMetadataBody.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ describe("generateMetadataBody", () => {
[
{
"@type": "Other",
"https://github.com/cardano-foundation/CIPs/blob/master/CIP-0108/README.md#reference-label":
"https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md#reference-label":
"Label",
"https://github.com/cardano-foundation/CIPs/blob/master/CIP-0108/README.md#reference-uri":
"https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md#reference-uri":
"https://example.com/link1",
},
{
"@type": "Other",
"https://github.com/cardano-foundation/CIPs/blob/master/CIP-0108/README.md#reference-label":
"https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md#reference-label":
"Label",
"https://github.com/cardano-foundation/CIPs/blob/master/CIP-0108/README.md#reference-uri":
"https://github.com/cardano-foundation/CIPs/blob/master/CIP-0100/README.md#reference-uri":
"https://example.com/link2",
},
],
Expand Down

0 comments on commit d475828

Please sign in to comment.