Skip to content

Commit

Permalink
[#1924] map references from validation service to format expected by FE
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dyczka committed Sep 4, 2024
1 parent 5ada165 commit 2f2a1d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ changes.

- Fix incorrect documentation link for "Learn More" button on proposal [Issue 1877](https://github.com/IntersectMBO/govtool/issues/1877)
- Fix getVotes sql to query time from vote tx instead of govAaction tx [Issue 1925](https://github.com/IntersectMBO/govtool/issues/1925)
- Map references from validation service to format expected by FE [Issue 1924](https://github.com/IntersectMBO/govtool/issues/1924)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion govtool/frontend/src/models/metadataValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ export type ProposalMetadata = {
abstract?: string;
motivation?: string;
rationale?: string;
references?: string[];
references?: Reference[];
title?: string;
};
2 changes: 1 addition & 1 deletion govtool/frontend/src/utils/mapDtoToProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const mapDtoToProposal = async (
abstract: validationResponse.metadata?.abstract,
motivation: validationResponse.metadata?.motivation,
rationale: validationResponse.metadata?.rationale,
references: validationResponse.metadata?.references,
references: validationResponse.metadata?.references?.map(({ uri }) => uri),
metadataStatus: validationResponse.status || null,
metadataValid: validationResponse.valid,
};
Expand Down

0 comments on commit 2f2a1d2

Please sign in to comment.