From 8898d8210055dfa4582720a0e50bca83b2ee6cbd Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Tue, 26 Nov 2024 16:03:34 +0100 Subject: [PATCH] catalog-react: remove memoization of Popper Signed-off-by: Vincenzo Scamporlino --- .../components/EntityOwnerPicker/EntityOwnerPicker.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx b/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx index 305c81e29f..ecbdae1d63 100644 --- a/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx +++ b/plugins/catalog-react/src/components/EntityOwnerPicker/EntityOwnerPicker.tsx @@ -93,10 +93,6 @@ export type EntityOwnerPickerProps = { mode?: 'owners-only' | 'all'; }; -const Popper = React.memo(function Popper({ children }: PopperProps) { - return
{children as ReactNode}
; -}); - function RenderOptionLabel(props: { entity: Entity; isSelected: boolean }) { const classes = useStyles(); const isGroup = props.entity.kind.toLocaleLowerCase('en-US') === 'group'; @@ -267,3 +263,7 @@ export const EntityOwnerPicker = (props?: EntityOwnerPickerProps) => { ); }; + +function Popper({ children }: PopperProps) { + return
{children as ReactNode}
; +}