mirror of https://github.com/portainer/portainer
fix(images): sort by tags [EE-6410] (#10755)
parent
57b80cd9ac
commit
7f51c727a0
|
@ -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