From 2283aa8d9411b065a00cd6c78ae2fff9eadb3352 Mon Sep 17 00:00:00 2001 From: MokireddySampath <120497218+MokireddySampath@users.noreply.github.com> Date: Tue, 4 Jul 2023 09:22:03 +0530 Subject: [PATCH] Update TableEntity.tsx --- src/Common/TableEntity.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Common/TableEntity.tsx b/src/Common/TableEntity.tsx index 193a39648..4a0834d43 100644 --- a/src/Common/TableEntity.tsx +++ b/src/Common/TableEntity.tsx @@ -37,7 +37,7 @@ export interface TableEntityProps { onDeleteEntity?: () => void; onEditEntity?: () => void; onEntityPropertyChange: (event: React.FormEvent, newInput?: string) => void; - onEntityTypeChange: (event: React.FormEvent, selectedParam?: IDropdownOption | undefined, index?: number | undefined) => void; + onEntityTypeChange: (event: React.FormEvent, selectedParam: IDropdownOption) => void onEntityValueChange: (event: React.FormEvent, newInput?: string) => void; onSelectDate: (date: Date | null | undefined) => void; onEntityTimeValueChange: (event: React.FormEvent, newInput?: string) => void; @@ -76,12 +76,12 @@ export const TableEntity: FunctionComponent = ({ const handleKeyPress = (event: React.KeyboardEvent) => { if (event.key === "Enter" || event.key === "Space") { - onEditEntity?.(); + onEditEntity(); } }; const handleKeyPressdelete = (event: React.KeyboardEvent) => { if (event.key === "Enter" || event.key === "Space") { - onDeleteEntity?.(); + onDeleteEntity(); } };