Compare commits

..

No commits in common. "283d90c707b6a6c3b919d140c3ca2a04eb9c8c53" and "eddb1cab376e6c24a12de753e0e2f664a626f074" have entirely different histories.

View File

@ -6,14 +6,13 @@ import React, { useState } from 'react';
import { TableArrangement, Guest } from '@/app/lib/definitions';
import { lusitana } from '@/app/ui/fonts';
import { Table } from '@/app/ui/components/table';
import { getSlug } from '@/app/lib/utils';
export default function Arrangement({ id }: { id: string }) {
const [tables, setTables] = useState<Array<TableArrangement>>([]);
function loadTables() {
fetch(`/api/${getSlug()}/tables_arrangements/${id}`)
fetch(`/api/tables_arrangements/${id}`)
.then((response) => response.json())
.then((data) => {
setTables(data.map((record: any) => {