From 446bd9035f335a7aa2643674cbf4f27640e509ea Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Fri, 10 Jun 2022 10:06:40 -0700 Subject: [PATCH] IO-1914 Resolve bill edit error. --- .../bill-inventory-table/bill-inventory-table.component.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/bill-inventory-table/bill-inventory-table.component.jsx b/client/src/components/bill-inventory-table/bill-inventory-table.component.jsx index 3f8fac369..30f35aa1f 100644 --- a/client/src/components/bill-inventory-table/bill-inventory-table.component.jsx +++ b/client/src/components/bill-inventory-table/bill-inventory-table.component.jsx @@ -29,7 +29,7 @@ export function BillInventoryTable({ const { t } = useTranslation(); useEffect(() => { - if (inventoryData) { + if (inventoryData && inventoryData.inventory) { form.setFieldsValue({ inventory: billEnterModal.context.consumeinventoryid ? inventoryData.inventory.map((i) => {