mirror of
https://github.com/moghtech/komodo.git
synced 2026-07-19 12:21:28 -05:00
fix selecting build for deployment when search for build
This commit is contained in:
@@ -45,10 +45,10 @@ const Image: Component<{}> = (p) => {
|
||||
.map((id) => builds.get(id)?.name!)
|
||||
.filter((val) => val),
|
||||
]}
|
||||
onSelect={(build, index) => {
|
||||
onSelect={(build) => {
|
||||
setDeployment(
|
||||
"buildID",
|
||||
build === "custom image" ? undefined : builds.ids()![index - 1]
|
||||
build === "custom image" ? undefined : builds.ids()!.find((id) => builds.get(id)?.name === build)
|
||||
);
|
||||
}}
|
||||
position="bottom right"
|
||||
|
||||
Reference in New Issue
Block a user