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