mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-30 10:37:42 +03:00
Sort class images
This commit is contained in:
parent
d49a7425c8
commit
208a88bfd5
@ -577,9 +577,14 @@ function DatasetGrid({
|
|||||||
}: DatasetGridProps) {
|
}: DatasetGridProps) {
|
||||||
const { t } = useTranslation(["views/classificationModel"]);
|
const { t } = useTranslation(["views/classificationModel"]);
|
||||||
|
|
||||||
|
const classData = useMemo(
|
||||||
|
() => images.sort((a, b) => a.localeCompare(b)),
|
||||||
|
[images],
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-wrap gap-2 overflow-y-auto p-2">
|
<div className="flex flex-wrap gap-2 overflow-y-auto p-2">
|
||||||
{images.map((image) => (
|
{classData.map((image) => (
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex w-60 cursor-pointer flex-col gap-2 rounded-lg bg-card outline outline-[3px]",
|
"flex w-60 cursor-pointer flex-col gap-2 rounded-lg bg-card outline outline-[3px]",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user