From 1347b8ec17da122a7e3a17b12e8afb2da1e80984 Mon Sep 17 00:00:00 2001 From: Marc Velmer Date: Fri, 4 Oct 2024 14:45:24 +0200 Subject: [PATCH] Changed `structuredClone` to JSON for compatibility issues --- src/types/metadata/election.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/metadata/election.ts b/src/types/metadata/election.ts index 717107e..d93a6ff 100644 --- a/src/types/metadata/election.ts +++ b/src/types/metadata/election.ts @@ -193,5 +193,5 @@ export const ElectionMetadataTemplate: ElectionMetadata = { }; export const getElectionMetadataTemplate = () => { - return structuredClone(ElectionMetadataTemplate); + return JSON.parse(JSON.stringify(ElectionMetadataTemplate)); };