Skip to content

Commit

Permalink
fix: statuses loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Oct 14, 2024
1 parent 8f6d74d commit a9d7a04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/stores/statuses.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
})
}
Expand Down

0 comments on commit a9d7a04

Please sign in to comment.