vite changes; table edit fix

This commit is contained in:
2025-02-10 22:26:30 -06:00
parent a4b1e55968
commit 93d1a8a803
3 changed files with 6 additions and 5 deletions

View File

@@ -42,8 +42,9 @@ export function DataTableComponent({
const handleEditRow: MRT_TableOptions<any>['onEditingRowSave'] = async ({
values,
table,
row,
}) => {
editRow({ method: 'PATCH', endpoint: endpoint, body: values });
editRow({ method: 'PATCH', endpoint: endpoint, body: { ...values, id:row.id }});
table.setEditingRow(null);
};
const openDeleteConfirmModal = (row: MRT_Row<any>) =>