fixed bugs
This commit is contained in:
@@ -141,8 +141,7 @@ Vue.component('workorder-admin', {
|
||||
computed: {
|
||||
companiesForMassAssign() {
|
||||
if (this.workordersToAssign.length === 0) return [];
|
||||
const firstWorkorder = this.$refs.table?.$refs.table.rows.find(r => r.id === this.workordersToAssign[0]);
|
||||
return firstWorkorder ? this.companiesByTenant[firstWorkorder.tenantId] || [] : [];
|
||||
return Object.values(this.companiesByTenant)[0] || [];
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user