Migrate framework events backing data structure to datasource
Summary: This will allow us to build a nice table easily. Reviewed By: lblasa Differential Revision: D47520029 fbshipit-source-id: 3cdd776533b66688329171eb29b892e0b9153540
This commit is contained in:
committed by
Facebook GitHub Bot
parent
16480a95f3
commit
7812dae764
@@ -15,7 +15,7 @@ import {StackTraceInspector} from './StackTraceInspector';
|
||||
|
||||
type Props = {
|
||||
node: UINode;
|
||||
events: FrameworkEvent[];
|
||||
events: readonly FrameworkEvent[];
|
||||
showExtra?: (element: ReactNode) => void;
|
||||
};
|
||||
export const FrameworkEventsInspector: React.FC<Props> = ({
|
||||
@@ -41,7 +41,7 @@ export const FrameworkEventsInspector: React.FC<Props> = ({
|
||||
};
|
||||
|
||||
const hasStacktrace = (event: FrameworkEvent) => {
|
||||
return event.attribution?.type === 'stacktrace';
|
||||
return event?.attribution?.type === 'stacktrace';
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user