fix error when user doesn't have access to build on deployment

This commit is contained in:
mbecker20
2023-02-23 08:00:55 +00:00
parent 1374c26cd8
commit e090247723
@@ -22,7 +22,8 @@ const Deployment: Component<{ id: string }> = (p) => {
);
const image = () => {
if (deployment().deployment.build_id) {
const build = builds.get(deployment().deployment.build_id!)!;
const build = builds.get(deployment().deployment.build_id!);
if (build === undefined) return "unknown"
if (deployment().state === DockerContainerState.NotDeployed) {
const version = deployment().deployment.build_version
? readableVersion(deployment().deployment.build_version!).replaceAll(