Skip to content

Commit 971eb63

Browse files
committed
fix: handle non object types when normalizing evidence
1 parent 135828d commit 971eb63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bootstrap/dataloader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export const useDataloader = Object.keys(dataloaders).reduce((acc, f) => {
272272
}, {});
273273

274274
const normalizeEvidenceJSON = (json) => {
275-
if (!json) return json;
275+
if (!json || typeof json !== "object" || Array.isArray(json)) return json;
276276
const normalized = { ...json };
277277

278278
//Many PoH cases have an evidence format mismatch.

0 commit comments

Comments
 (0)