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 d240a87 commit 47e2022
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ changes.

### Fixed

-
- 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),

Check failure on line 19 in govtool/frontend/src/utils/mapDtoToProposal.ts

View workflow job for this annotation

GitHub Actions / lint

A space is required after '{'

Check failure on line 19 in govtool/frontend/src/utils/mapDtoToProposal.ts

View workflow job for this annotation

GitHub Actions / lint

A space is required before '}'
metadataStatus: validationResponse.status || null,
metadataValid: validationResponse.valid,
};
Expand Down

0 comments on commit 47e2022

Please sign in to comment.