From a9d7a04fadf43607afee86740bd297ac60d6604b Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 14 Oct 2024 12:49:23 +0530 Subject: [PATCH] fix: statuses loading issue --- frontend/src/stores/statuses.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/stores/statuses.js b/frontend/src/stores/statuses.js index d8f381a3b..8697e5b2e 100644 --- a/frontend/src/stores/statuses.js +++ b/frontend/src/stores/statuses.js @@ -105,15 +105,15 @@ export const statusesStore = defineStore('crm-statuses', () => { let options = [] for (const status in statusesByName) { options.push({ - label: statusesByName[status].name, - value: statusesByName[status].name, + label: statusesByName[status]?.name, + value: statusesByName[status]?.name, icon: () => h(IndicatorIcon, { - class: statusesByName[status].iconColorClass, + class: statusesByName[status]?.iconColorClass, }), onClick: () => { capture('status_changed', { doctype, status }) - action && action('status', statusesByName[status].name) + action && action('status', statusesByName[status]?.name) }, }) }