From c192af7fa00c753e8d076745cf11ef75433e96a1 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Mon, 13 Mar 2023 03:55:03 -0700 Subject: [PATCH] Event name declutter Summary: The current event label used the event type. The type in itself can have this shape: `ck:willMountComponent` The event name is just 'willMountComponent'. So, extract that piece of data instead. Reviewed By: aigoncharov Differential Revision: D43983728 fbshipit-source-id: e232b59cfe3eb0710e56fc9ba7f94b644b07ee74 --- .../plugins/public/ui-debugger/components/sidebar/Inspector.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/plugins/public/ui-debugger/components/sidebar/Inspector.tsx b/desktop/plugins/public/ui-debugger/components/sidebar/Inspector.tsx index a3892f0b9..417449f0d 100644 --- a/desktop/plugins/public/ui-debugger/components/sidebar/Inspector.tsx +++ b/desktop/plugins/public/ui-debugger/components/sidebar/Inspector.tsx @@ -111,7 +111,7 @@ export const Inspector: React.FC = ({nodes, metadata}) => { time: events.map((e) => { return { moment: e.timestamp, - display: e.type, + display: e.type.slice(e.type.lastIndexOf(':') + 1), color: theme.primaryColor, key: e.timestamp.toString(), };