diff --git a/desktop/plugins/public/ui-debugger/index.tsx b/desktop/plugins/public/ui-debugger/index.tsx index 3598d1e08..a418dd2c2 100644 --- a/desktop/plugins/public/ui-debugger/index.tsx +++ b/desktop/plugins/public/ui-debugger/index.tsx @@ -130,9 +130,12 @@ export function plugin(client: PluginClient) { const seenNodes = new Set(); client.onMessage('subtreeUpdate', (event) => { liveClientData = produce(liveClientData, (draft) => { - if (event.snapshot) { + // FIXME: remove node id from snapshot as is always + // for the entire screen. + const nodeId = rootId.get(); + if (event.snapshot && nodeId) { draft.snapshotInfo = { - nodeId: event.rootId, + nodeId, base64Image: event.snapshot, }; }