Merge pull request #14299 from backstage/freben/nothis

Get rid of `this-is-undefined-in-esm` warning
This commit is contained in:
Johan Haals
2022-10-24 14:54:01 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
@@ -98,7 +98,7 @@ export const EntityListComponent = (props: EntityListComponentProps) => {
<ListItem
dense
button={Boolean(onItemClick) as any}
onClick={() => onItemClick?.call(this, r.target)}
onClick={() => onItemClick?.(r.target)}
>
<ListItemIcon>{locationListItemIcon(r.target)}</ListItemIcon>