Skip to content

Commit 84e504e

Browse files
committed
Pass the function as it is
Signed-off-by: Gnanesh <[email protected]>
1 parent c8e0249 commit 84e504e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redisinsight/ui/src/pages/home/components/form/TlsDetails.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const TlsDetails = (props: Props) => {
9292
closePopover={closePopover}
9393
updateLoading={false}
9494
showPopover={showPopover}
95-
handleDeleteItem={() => handleDeleteCaCert(cert.id)}
95+
handleDeleteItem={handleDeleteCaCert}
9696
testid={`delete-ca-cert-${cert.id}`}
9797
/>
9898
</div>
@@ -123,7 +123,7 @@ const TlsDetails = (props: Props) => {
123123
closePopover={closePopover}
124124
updateLoading={false}
125125
showPopover={showPopover}
126-
handleDeleteItem={() => handleDeleteClientCert(cert.id)}
126+
handleDeleteItem={handleDeleteClientCert}
127127
testid={`delete-client-cert-${cert.id}`}
128128
/>
129129
</div>

0 commit comments

Comments
 (0)