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