Rework the table simulations UI #331

Open
bustikiller wants to merge 6 commits from simulations-ui-rework into main
Showing only changes of commit 702bb52d72 - Show all commits

View File

@ -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) => {