From 341799a3d907a0f7ea1a302f299772c9042d743b Mon Sep 17 00:00:00 2001 From: IKatsuba Date: Wed, 10 Feb 2021 11:49:19 +0300 Subject: [PATCH] chore(ngx-ssr-cache): small refactoring --- libs/ngx-ssr/cache/express/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ngx-ssr/cache/express/index.ts b/libs/ngx-ssr/cache/express/index.ts index b4184fa..5e7a74c 100644 --- a/libs/ngx-ssr/cache/express/index.ts +++ b/libs/ngx-ssr/cache/express/index.ts @@ -32,7 +32,7 @@ export function withCache( }); } - const originalUrl = options.req.originalUrl; + const originalUrl = options.req?.originalUrl; if (!originalUrl) { runEngine();