mirror of
https://github.com/moghtech/komodo.git
synced 2026-10-08 08:00:48 +00:00
fix error when user doesn't have access to build on deployment
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user