From ad42f58ed619c8f10c5271249c1c3f7c8f0dd2dc Mon Sep 17 00:00:00 2001 From: andremacola Date: Fri, 25 Oct 2024 18:06:32 -0300 Subject: [PATCH] fix: adjustment of poorly formatted ldjson error --- src/utils/extractLdSchema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/extractLdSchema.js b/src/utils/extractLdSchema.js index dc42394..6c34976 100644 --- a/src/utils/extractLdSchema.js +++ b/src/utils/extractLdSchema.js @@ -43,7 +43,7 @@ const parseJson = (text) => { try { return JSON.parse(text) } catch { - return null + return {} } }