Skip to content

Commit 31671ed

Browse files
author
Diego Rodriguez Baquero
committed
coments
1 parent 9825584 commit 31671ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/contexts/NodesContext.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ export const NodesContextProvider = ({
4848
const nodesMap = new Map<string, Node>();
4949
const medianTTFB = Number(response.headers.get("x-saturn-median-ttfb"));
5050

51-
setGlobalStats({ medianTTFB });
51+
if (medianTTFB) {
52+
setGlobalStats({ medianTTFB });
53+
}
5254

5355
const onChunk = ({
5456
done,

0 commit comments

Comments
 (0)