From 204a34ee3d12f385a4e02f3dcbe423f5c0e8f9b5 Mon Sep 17 00:00:00 2001 From: daishi Date: Tue, 2 Jan 2024 08:23:06 +0900 Subject: [PATCH] avoid non null assertion --- packages/waku/src/lib/handlers/dev-worker-impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/waku/src/lib/handlers/dev-worker-impl.ts b/packages/waku/src/lib/handlers/dev-worker-impl.ts index 35f037dd4..39fdb3ddb 100644 --- a/packages/waku/src/lib/handlers/dev-worker-impl.ts +++ b/packages/waku/src/lib/handlers/dev-worker-impl.ts @@ -49,7 +49,7 @@ const handleRender = async (mesg: MessageReq & { type: 'render' }) => { searchParams: new URLSearchParams(rr.searchParamsString), method: rr.method, context: rr.context, - body: rr.stream!, + ...(rr.stream ? { body: rr.stream } : {}), contentType: rr.contentType, ...(rr.moduleIdCallback ? { moduleIdCallback: rr.moduleIdCallback } : {}), isDev: true,