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';
|
import { columnHelper } from './helper';
|
||||||
|
|
||||||
export const tags = columnHelper.accessor((item) => item.tags.join(','), {
|
export const tags = columnHelper.accessor((item) => item.tags?.join(','), {
|
||||||
id: 'tags',
|
id: 'tags',
|
||||||
header: 'Tags',
|
header: 'Tags',
|
||||||
cell: Cell,
|
cell: Cell,
|
||||||
|
@ -17,7 +17,7 @@ function Cell({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{repoTags.map((tag, idx) => (
|
{repoTags?.map((tag, idx) => (
|
||||||
<span key={idx} className="label label-primary image-tag" title={tag}>
|
<span key={idx} className="label label-primary image-tag" title={tag}>
|
||||||
{tag}
|
{tag}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -11,7 +11,7 @@ export interface ImagesListResponse {
|
||||||
nodeName?: string;
|
nodeName?: string;
|
||||||
id: string;
|
id: string;
|
||||||
size: number;
|
size: number;
|
||||||
tags: string[];
|
tags?: string[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used is true if the image is used by at least one container.
|
* Used is true if the image is used by at least one container.
|
||||||
|
|
Loading…
Reference in New Issue