mirror of https://github.com/portainer/portainer
fix(images): sort by tags [EE-6410] (#10739)
parent
83cd5d9b2f
commit
b75f0e561b
|
@ -4,14 +4,14 @@ import { DockerImage } from '@/react/docker/images/types';
|
|||
|
||||
import { columnHelper } from './helper';
|
||||
|
||||
export const tags = columnHelper.accessor('RepoTags', {
|
||||
export const tags = columnHelper.accessor((item) => item.RepoTags.join(','), {
|
||||
id: 'tags',
|
||||
header: 'Tags',
|
||||
cell: Cell,
|
||||
});
|
||||
|
||||
function Cell({ getValue }: CellContext<DockerImage, string[]>) {
|
||||
const repoTags = getValue();
|
||||
function Cell({ row: { original: item } }: CellContext<DockerImage, unknown>) {
|
||||
const repoTags = item.RepoTags;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
Loading…
Reference in New Issue