From c18efe0382041eba1cad51ffe028a09e0c8e17df Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 4 Apr 2023 12:00:57 +0530 Subject: [PATCH] fix: prevent cannot read property --- src/pages/ChartOfAccounts.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ChartOfAccounts.vue b/src/pages/ChartOfAccounts.vue index 85aec10f..f48c32f8 100644 --- a/src/pages/ChartOfAccounts.vue +++ b/src/pages/ChartOfAccounts.vue @@ -299,7 +299,7 @@ export default { } if (account == null) { - account = parentAccount.children.find((ch) => ch.name === name); + account = parentAccount.children.find((ch) => ch?.name === name); } if (account == null) {