From 9498a529d5a0eed25848dfaaabd43ce0072ec14c Mon Sep 17 00:00:00 2001 From: Alex Min Date: Fri, 9 Jul 2021 10:02:53 -0700 Subject: [PATCH] Filter out empty strings after splitting top-level JSON Summary: https://fb.workplace.com/groups/flippersupport/permalink/1169477680199555/ Reviewed By: jknoxville Differential Revision: D29637437 fbshipit-source-id: cd8c55141f2d95afeea0f8680dd3a0d29943c200 --- desktop/plugins/public/network/RequestDetails.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop/plugins/public/network/RequestDetails.tsx b/desktop/plugins/public/network/RequestDetails.tsx index 6e923ed9d..58e071121 100644 --- a/desktop/plugins/public/network/RequestDetails.tsx +++ b/desktop/plugins/public/network/RequestDetails.tsx @@ -610,6 +610,7 @@ class GraphQLFormatter { const parsedResponses = body .replace(/}{/g, '}\r\n{') .split('\n') + .filter((json) => json.length > 0) .map((json) => JSON.parse(json)); return (