fix(images): sort by tags [EE-6410] (#10739)

pull/10749/head
Chaim Lev-Ari 2023-12-04 08:47:19 +02:00 committed by GitHub
parent 83cd5d9b2f
commit b75f0e561b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -4,14 +4,14 @@ import { DockerImage } from '@/react/docker/images/types';
import { columnHelper } from './helper'; import { columnHelper } from './helper';
export const tags = columnHelper.accessor('RepoTags', { export const tags = columnHelper.accessor((item) => item.RepoTags.join(','), {
id: 'tags', id: 'tags',
header: 'Tags', header: 'Tags',
cell: Cell, cell: Cell,
}); });
function Cell({ getValue }: CellContext<DockerImage, string[]>) { function Cell({ row: { original: item } }: CellContext<DockerImage, unknown>) {
const repoTags = getValue(); const repoTags = item.RepoTags;
return ( return (
<> <>