From c0db841293ea04f2048f913544b68470e4ebd177 Mon Sep 17 00:00:00 2001 From: Max Frederiksen <maxfrederiksen@Maxs-MacBook-Air.local> Date: Fri, 6 Sep 2024 14:22:55 +0200 Subject: [PATCH] Address Johannas comments --- src/components/IOC/IOCDeployDialog/IOCDeployDialog.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/IOC/IOCDeployDialog/IOCDeployDialog.tsx b/src/components/IOC/IOCDeployDialog/IOCDeployDialog.tsx index 1a93c97b..c44efba1 100644 --- a/src/components/IOC/IOCDeployDialog/IOCDeployDialog.tsx +++ b/src/components/IOC/IOCDeployDialog/IOCDeployDialog.tsx @@ -18,7 +18,7 @@ import { import { getErrorMessage } from "../../common/Helper"; import { FormElements } from "../../../types/common"; -type DeployIocFormDefaults = { +interface DeployIocFormDefaults { name: string; description: string; git: string; @@ -29,7 +29,7 @@ type DeployIocFormDefaults = { fqdn: string; hostId: string; }; -}; +} interface IOCDeployDialogProps { open: boolean; @@ -182,7 +182,10 @@ export function IOCDeployDialog({ tagOrCommit.reference === deployIocFormDefaults.reference ) }} - onGitQueryValueSelect={(_: any, value: GitReference) => { + onGitQueryValueSelect={( + _: React.SyntheticEvent<Element, Event>, + value: GitReference + ) => { setRevision(value?.reference); resetError(); }} -- GitLab