diff --git a/src/components/JoSearch/JoSearch.tsx b/src/components/JoSearch/JoSearch.tsx index ca95d2b..55fe5f4 100644 --- a/src/components/JoSearch/JoSearch.tsx +++ b/src/components/JoSearch/JoSearch.tsx @@ -58,14 +58,14 @@ const JoSearch: React.FC = ({ defaultInputs, bomCombo }) => { name: "item", label: t("Item Code"), renderCell: (row) => { - return t(row.item.code) + return row.item ? t(row.item.code) : '-' } }, { name: "itemName", label: t("Item Name"), renderCell: (row) => { - return t(row.item.name) + return row.item ? t(row.item.name) : '-' } }, { @@ -83,7 +83,7 @@ const JoSearch: React.FC = ({ defaultInputs, bomCombo }) => { align: "left", headerAlign: "left", renderCell: (row) => { - return t(row.item.uom.udfudesc) + return row.item?.uom ? t(row.item.uom.udfudesc) : '-' } }, {