diff --git a/src/app/kubernetes/model/buildconfig.model.ts b/src/app/kubernetes/model/buildconfig.model.ts index 5fdafbc..fe508bb 100644 --- a/src/app/kubernetes/model/buildconfig.model.ts +++ b/src/app/kubernetes/model/buildconfig.model.ts @@ -67,6 +67,12 @@ export class BuildConfig extends KubernetesSpecResource { } } } + if (!this._lastBuild && builds.length) { + this._lastBuild = builds[0]; + if (!this.lastBuildName && this._lastBuild) { + this.lastBuildName = this._lastBuild.name; + } + } for (let build of builds) { if ("Running" === build.statusPhase) { @@ -303,4 +309,4 @@ export function appInfos(buildConfigs: BuildConfigs): Map = new Map(); name: string; -} \ No newline at end of file +}