From 2ae4bf78911fadc27b44d8ec330d41fffb2b83c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Sworze=C5=84?= Date: Thu, 7 Mar 2024 21:09:09 +0100 Subject: [PATCH] change type on @type --- .../frontend/src/hooks/forms/useCreateGovernanceActionForm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/govtool/frontend/src/hooks/forms/useCreateGovernanceActionForm.ts b/govtool/frontend/src/hooks/forms/useCreateGovernanceActionForm.ts index 7fe11839b..920070a07 100644 --- a/govtool/frontend/src/hooks/forms/useCreateGovernanceActionForm.ts +++ b/govtool/frontend/src/hooks/forms/useCreateGovernanceActionForm.ts @@ -38,7 +38,7 @@ export const useCreateGovernanceActionForm = () => { ?.filter((link) => link.link) .map((link) => { // TODO: Label isnt available and harcoded Other for type - return { type: "Other", label: "Testlabel", uri: link.link }; + return { "@type": "Other", label: "Testlabel", uri: link.link }; }); const body = { ...Object.fromEntries(filteredData), references };