fix(docker/images): check for empty tags EE-6256 (#10531)

pull/10914/head
matias-portainer 2024-01-05 17:33:42 -03:00 committed by GitHub
parent 717f0978d9
commit 69271c9d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import { ImagesListResponse } from '@/react/docker/images/queries/useImages';
import { columnHelper } from './helper';
export const tags = columnHelper.accessor((item) => item.tags.join(','), {
export const tags = columnHelper.accessor((item) => item.tags?.join(','), {
id: 'tags',
header: 'Tags',
cell: Cell,
@ -17,7 +17,7 @@ function Cell({
return (
<>
{repoTags.map((tag, idx) => (
{repoTags?.map((tag, idx) => (
<span key={idx} className="label label-primary image-tag" title={tag}>
{tag}
</span>

View File

@ -11,7 +11,7 @@ export interface ImagesListResponse {
nodeName?: string;
id: string;
size: number;
tags: string[];
tags?: string[];
/**
* Used is true if the image is used by at least one container.