diff --git a/ui/lib/objects.ts b/ui/lib/objects.ts index 69e003861e..0e8d91eea6 100644 --- a/ui/lib/objects.ts +++ b/ui/lib/objects.ts @@ -114,7 +114,9 @@ export class FluxObject { get images(): string[] { const spec = this.obj.spec; if (!spec) return []; - if (spec.template) return spec.template.spec.containers.map((x) => x.image); + if (spec.template) { + return spec.template.spec?.containers.map((x) => x.image); + } if (spec.containers) return spec.containers.map((x) => x.image); return []; }