From 41ce871ba93cce45b11ae4950d19d459b215c133 Mon Sep 17 00:00:00 2001 From: Martial Maillot Date: Thu, 12 Oct 2023 14:14:21 +0200 Subject: [PATCH] fix: use mapping to create graphql request --- .../components/informationsEdit/editInformation.mapping.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/targets/frontend/src/modules/informations/components/informationsEdit/editInformation.mapping.ts b/targets/frontend/src/modules/informations/components/informationsEdit/editInformation.mapping.ts index 47d4a055c..586da74c6 100644 --- a/targets/frontend/src/modules/informations/components/informationsEdit/editInformation.mapping.ts +++ b/targets/frontend/src/modules/informations/components/informationsEdit/editInformation.mapping.ts @@ -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,