diff --git a/desktop/plugins/public/ui-debugger/DesktopTypes.tsx b/desktop/plugins/public/ui-debugger/DesktopTypes.tsx index d29d3344a..c9f708267 100644 --- a/desktop/plugins/public/ui-debugger/DesktopTypes.tsx +++ b/desktop/plugins/public/ui-debugger/DesktopTypes.tsx @@ -66,7 +66,7 @@ export type NestedNode = { export type ViewMode = | {mode: 'default'} - | {mode: 'frameworkEventsTable'; treeRootId: Id}; + | {mode: 'frameworkEventsTable'; nodeId: Id}; export type NodeSelection = { id: Id; diff --git a/desktop/plugins/public/ui-debugger/components/FrameworkEventsTable.tsx b/desktop/plugins/public/ui-debugger/components/FrameworkEventsTable.tsx index fd3a6e795..db90e6b72 100644 --- a/desktop/plugins/public/ui-debugger/components/FrameworkEventsTable.tsx +++ b/desktop/plugins/public/ui-debugger/components/FrameworkEventsTable.tsx @@ -20,17 +20,17 @@ import {FrameworkEvent, Id} from '../ClientTypes'; import {plugin} from '../index'; import {Button, Tooltip} from 'antd'; -export function FrameworkEventsTable({treeId}: {treeId?: Id}) { +export function FrameworkEventsTable({nodeId}: {nodeId: Id}) { const instance = usePlugin(plugin); const managerRef = useRef | null>(null); useEffect(() => { - if (treeId != null) { + if (nodeId != null) { managerRef.current?.resetFilters(); - managerRef.current?.addColumnFilter('treeId', treeId as string); + managerRef.current?.addColumnFilter('nodeId', nodeId as string); } - }, [treeId]); + }, [nodeId]); return ( diff --git a/desktop/plugins/public/ui-debugger/components/main.tsx b/desktop/plugins/public/ui-debugger/components/main.tsx index 22c778342..90ed95d4b 100644 --- a/desktop/plugins/public/ui-debugger/components/main.tsx +++ b/desktop/plugins/public/ui-debugger/components/main.tsx @@ -103,7 +103,7 @@ export function Component() { } if (viewMode.mode === 'frameworkEventsTable') { - return ; + return ; } return ( diff --git a/desktop/plugins/public/ui-debugger/components/sidebar/inspector/FrameworkEventsInspector.tsx b/desktop/plugins/public/ui-debugger/components/sidebar/inspector/FrameworkEventsInspector.tsx index 1626dabd8..d9ed903c2 100644 --- a/desktop/plugins/public/ui-debugger/components/sidebar/inspector/FrameworkEventsInspector.tsx +++ b/desktop/plugins/public/ui-debugger/components/sidebar/inspector/FrameworkEventsInspector.tsx @@ -78,20 +78,18 @@ export const FrameworkEventsInspector: React.FC = ({ Event timeline - {node.tags.includes('TreeRoot') && ( - -