From b7880a7187188434180f19829afe898e576b77da Mon Sep 17 00:00:00 2001 From: Andrew Bulat Date: Fri, 22 Nov 2024 04:03:21 +0000 Subject: [PATCH] Fix StateMessage.decode not correctly decoding operation.map.entries --- src/plugins/liveobjects/statemessage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/liveobjects/statemessage.ts b/src/plugins/liveobjects/statemessage.ts index d3af8bd3d..bf1cd948a 100644 --- a/src/plugins/liveobjects/statemessage.ts +++ b/src/plugins/liveobjects/statemessage.ts @@ -164,8 +164,8 @@ export class StateMessage { } } - if (message.operation?.map) { - for (const entry of Object.values(message.operation.map)) { + if (message.operation?.map?.entries) { + for (const entry of Object.values(message.operation.map.entries)) { await decodeMapEntry(entry, inputContext, decodeDataFn); } }