diff --git a/desktop/plugins/public/ui-debugger/index.tsx b/desktop/plugins/public/ui-debugger/index.tsx index 81954da5b..181083ffa 100644 --- a/desktop/plugins/public/ui-debugger/index.tsx +++ b/desktop/plugins/public/ui-debugger/index.tsx @@ -56,7 +56,7 @@ export function plugin(client: PluginClient) { client.onMessage('init', (event) => { rootId.set(event.rootId); uiState.frameworkEventMonitoring.update((draft) => { - event.frameworkEventMetadata.forEach((frameworkEventMeta) => { + event.frameworkEventMetadata?.forEach((frameworkEventMeta) => { draft.set(frameworkEventMeta.type, false); }); }); diff --git a/desktop/plugins/public/ui-debugger/types.tsx b/desktop/plugins/public/ui-debugger/types.tsx index 3e2740b74..8ae301b48 100644 --- a/desktop/plugins/public/ui-debugger/types.tsx +++ b/desktop/plugins/public/ui-debugger/types.tsx @@ -44,7 +44,7 @@ export type FrameworkEvent = { export type InitEvent = { rootId: Id; - frameworkEventMetadata: FrameworkEventMetadata[]; + frameworkEventMetadata?: FrameworkEventMetadata[]; }; export type PerfStatsEvent = {