vite changes; table edit fix
This commit is contained in:
@@ -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>) =>
|
||||
|
||||
@@ -84,8 +84,8 @@ function Header({
|
||||
{greet
|
||||
.replace('$firstName', currentUser.firstName)
|
||||
.replace('$lastName', currentUser.lastName)
|
||||
.replace('$firstName^', currentUser.firstName.toUpperCase())
|
||||
.replace('$lastName^', currentUser.lastName.toUpperCase())}
|
||||
.replace('$^firstName', currentUser.firstName.toUpperCase())
|
||||
.replace('$^lastName', currentUser.lastName.toUpperCase())}
|
||||
</Text>
|
||||
</Stack>
|
||||
<Stack
|
||||
|
||||
Reference in New Issue
Block a user