Rework the table simulations UI #331
@ -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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user