Merge pull request #496 from gnarlex/fix-event-details

fix: event table fails to render in detail view
This commit is contained in:
Mike Cao 2021-02-23 00:42:04 -08:00 committed by GitHub
commit 07754169ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ export default function EventsTable({ websiteId, ...props }) {
function handleDataLoad(data) {
setEventTypes([...new Set(data.map(({ x }) => x.split('\t')[0]))]);
props.onDataLoad(data);
props.onDataLoad?.(data);
}
return (