fix(ui): fix uploads tab in gallery

This commit is contained in:
psychedelicious 2023-05-25 00:07:02 +10:00 committed by Kent Keirsey
parent ad39680feb
commit 068bbe3a39

View File

@ -14,7 +14,7 @@ export type UploadsImageDTO = Omit<ImageDTO, 'image_type'> & {
}; };
export const uploadsAdapter = createEntityAdapter<UploadsImageDTO>({ export const uploadsAdapter = createEntityAdapter<UploadsImageDTO>({
selectId: (image) => image.image_category, selectId: (image) => image.image_name,
sortComparer: (a, b) => dateComparator(b.created_at, a.created_at), sortComparer: (a, b) => dateComparator(b.created_at, a.created_at),
}); });