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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
14795f203b
commit
c192af7fa0
@@ -111,7 +111,7 @@ export const Inspector: React.FC<Props> = ({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(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user