mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
fix(docker/images): check for empty tags EE-6256 (#10531)
This commit is contained in:
parent
717f0978d9
commit
69271c9d59
2 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue