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';
|
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 (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in New Issue