Working on vendors favorite JSON form - issues with additional fields + rehydrating data

This commit is contained in:
Patrick Fic
2020-02-14 15:57:40 -08:00
parent 12c914affd
commit 34f6f066bc
34 changed files with 1044 additions and 69 deletions

View File

@@ -26,11 +26,6 @@ export default function VendorsListComponent({
sorter: (a, b) => alphaSort(a.name, b.name),
sortOrder: state.sortedInfo.columnKey === "name" && state.sortedInfo.order
},
{
title: t("vendors.fields.favorite"),
dataIndex: "favorite",
key: "favorite"
},
{
title: t("vendors.fields.cost_center"),
dataIndex: "cost_center",
@@ -81,10 +76,10 @@ export default function VendorsListComponent({
</div>
);
}}
size='small'
size="small"
pagination={{ position: "top" }}
columns={columns.map(item => ({ ...item }))}
rowKey='id'
rowKey="id"
onChange={handleTableChange}
dataSource={vendors}
rowSelection={{