fixed bugs

This commit is contained in:
Luca Haid
2025-09-08 14:43:43 +02:00
parent 090ed349ce
commit 4bea970a6b
2 changed files with 18 additions and 6 deletions
@@ -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: {