build show unknown if builds[id] cannot be found

This commit is contained in:
beckerinj
2023-04-13 11:19:51 -04:00
parent 555c230d2e
commit b3b723a717

View File

@@ -41,7 +41,7 @@ const Image: Component<{}> = (p) => {
<Selector
targetClass="blue"
selected={
(deployment.build_id && builds.get(deployment.build_id)?.name) ||
(deployment.build_id && (builds.get(deployment.build_id)?.name || "unknown")) ||
"custom image"
}
items={[