Skip to content

Commit

Permalink
Changed structuredClone to JSON for compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvelmer committed Oct 4, 2024
1 parent a6e67e1 commit 1347b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/metadata/election.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,5 @@ export const ElectionMetadataTemplate: ElectionMetadata = {
};

export const getElectionMetadataTemplate = () => {
return structuredClone(ElectionMetadataTemplate);
return JSON.parse(JSON.stringify(ElectionMetadataTemplate));
};

0 comments on commit 1347b8e

Please sign in to comment.