mirror of https://github.com/portainer/portainer
fix(docker/images): check for empty tags EE-6256 (#10531)
parent
717f0978d9
commit
69271c9d59
|
@ -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>
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue