Skip to content

Commit

Permalink
fix: use mapping to create graphql request
Browse files Browse the repository at this point in the history
  • Loading branch information
m-maillot committed Oct 12, 2023
1 parent 73e6f53 commit 41ce871
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ const mapInformationContentsBlocks = (
...removeTypename(block),
...(block.type === "graphic"
? {
file: block.file,
img: block.img,
file: mapInformationContentsBlocksFile(block.file),
img: mapInformationContentsBlocksFile(block.img),
}
: {}),
...(block.type === "content"
? {
contents: block.contents,
contents: mapInformationContentsBlocksContents(block.contents),
}
: {}),
order: blockIndex + 1,
Expand Down

0 comments on commit 41ce871

Please sign in to comment.