From 702bb52d72f2272fda59e3f99a216e227b3c6ddd Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 21 Sep 2025 19:41:36 +0200 Subject: [PATCH] Apply limit and filter to the tables arrangements search API --- app/api/tableSimulations.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/tableSimulations.tsx b/app/api/tableSimulations.tsx index f8048a2..6892ba4 100644 --- a/app/api/tableSimulations.tsx +++ b/app/api/tableSimulations.tsx @@ -4,7 +4,7 @@ import { TableArrangement } from '@/app/lib/definitions'; import { getSlug } from '../lib/utils'; export function loadTableSimulations(onLoad?: (tableSimulations: TableArrangement[]) => void) { - fetch(`/api/${getSlug()}/tables_arrangements`) + fetch(`/api/${getSlug()}/tables_arrangements?limit=3&status=completed`) .then((response) => response.json()) .then((data) => { onLoad && onLoad(data.map((record: any) => {