diff --git a/frontend/src/features/common/table-layout/index.jsx b/frontend/src/features/common/table-layout/index.jsx index dc6bd0d..58e3656 100644 --- a/frontend/src/features/common/table-layout/index.jsx +++ b/frontend/src/features/common/table-layout/index.jsx @@ -38,7 +38,7 @@ function TableLayoutMemoized({ }); const navigate = useNavigate(); return ( - + - + {loading ? ( diff --git a/frontend/src/features/expenses/index.jsx b/frontend/src/features/expenses/index.jsx index 6f1321c..e60c6a4 100644 --- a/frontend/src/features/expenses/index.jsx +++ b/frontend/src/features/expenses/index.jsx @@ -95,7 +95,7 @@ export default function ExpensesPage() { const { symbol } = useCurrentOrgCurrency(); return ( - + {loading ? ( diff --git a/frontend/src/features/invoices/list/index.jsx b/frontend/src/features/invoices/list/index.jsx index 27ae0dd..5d9c536 100644 --- a/frontend/src/features/invoices/list/index.jsx +++ b/frontend/src/features/invoices/list/index.jsx @@ -84,7 +84,7 @@ export default function InvoicesPage() { const downloading = invoiceStatus === "downloading"; return ( - + {loading ? ( diff --git a/frontend/src/features/parties/index.jsx b/frontend/src/features/parties/index.jsx index 34da785..629cff7 100644 --- a/frontend/src/features/parties/index.jsx +++ b/frontend/src/features/parties/index.jsx @@ -96,7 +96,7 @@ export default function PartysPage() { const navigate = useNavigate(); return ( - + {loading ? ( diff --git a/frontend/src/features/purchase/list/index.jsx b/frontend/src/features/purchase/list/index.jsx index 739caf8..63c02d1 100644 --- a/frontend/src/features/purchase/list/index.jsx +++ b/frontend/src/features/purchase/list/index.jsx @@ -37,7 +37,7 @@ export default function PurchasePage() { const navigate = useNavigate(); const purchaseTableMapper = (purchase) => ({ partyName: purchase.party ? purchase.party.name : "", - billingAddress: purchase.party.billingAddress, + billingAddress: purchase?.billingAddress, ...purchase, purchaseNo: transactionPrefixInvoice + purchase.purchaseNo, date: new Date(purchase.date).toISOString().split("T")[0], @@ -90,7 +90,7 @@ export default function PurchasePage() { return ( - + {loading ? (