From 665bbd338cdd406fd7fec2cad585d31d44a2a2e0 Mon Sep 17 00:00:00 2001 From: irma12 Date: Mon, 19 Dec 2022 10:13:33 +0100 Subject: [PATCH] Add default delayTime value Signed-off-by: irma12 --- .../EntityPeekAheadPopover/EntityPeekAheadPopover.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/catalog-react/src/components/EntityPeekAheadPopover/EntityPeekAheadPopover.tsx b/plugins/catalog-react/src/components/EntityPeekAheadPopover/EntityPeekAheadPopover.tsx index ad53182b90..41b8cfbfb2 100644 --- a/plugins/catalog-react/src/components/EntityPeekAheadPopover/EntityPeekAheadPopover.tsx +++ b/plugins/catalog-react/src/components/EntityPeekAheadPopover/EntityPeekAheadPopover.tsx @@ -54,7 +54,7 @@ import { debounce } from 'lodash'; */ export type EntityPeekAheadPopoverProps = PropsWithChildren<{ entityRef: string; - delayTime: number; + delayTime?: number; }>; const useStyles = makeStyles(() => { @@ -83,7 +83,7 @@ const maxTagChips = 4; * @public */ export const EntityPeekAheadPopover = (props: EntityPeekAheadPopoverProps) => { - const { entityRef, children, delayTime } = props; + const { entityRef, children, delayTime = 500 } = props; const classes = useStyles(); const apiHolder = useApiHolder();