From ba2666f801905fc7612867c34ad78bccc892516b Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 17 Nov 2023 11:13:14 +0000 Subject: [PATCH] Set `production` property to null when no updates are to be sent to the client --- project/src/routers/EventOutputHolder.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/src/routers/EventOutputHolder.ts b/project/src/routers/EventOutputHolder.ts index 3903a037..17676f21 100644 --- a/project/src/routers/EventOutputHolder.ts +++ b/project/src/routers/EventOutputHolder.ts @@ -184,7 +184,8 @@ export class EventOutputHolder } } - return productions; + // Return null of there's no crafts to send to client to match live behaviour + return (Object.keys(productions).length > 0) ? productions : null } /**