From 4b79045dac22f22f43fc96fa9f00c89394a1eee1 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 26 Nov 2021 15:27:37 +0100 Subject: [PATCH] adding check on backend --- packages/worker/src/api/controllers/global/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/worker/src/api/controllers/global/auth.js b/packages/worker/src/api/controllers/global/auth.js index 5f7e656f7d..592787c5ea 100644 --- a/packages/worker/src/api/controllers/global/auth.js +++ b/packages/worker/src/api/controllers/global/auth.js @@ -100,7 +100,7 @@ exports.setInitInfo = ctx => { } exports.getInitInfo = ctx => { - ctx.body = getCookie(ctx, Cookies.Init) + ctx.body = getCookie(ctx, Cookies.Init) || {} } /**