I have an object that look like this:
groupedContacts:
{
4: [
{name: 'foo'},
{name: 'bar'}
],
6: [
{name: 'foo bar'},
]
}
Then I have an other array:
companyList.models:
models: [
{id:4, name: 'company A'},
{id:6, name: 'company B'},
]
So the Id's in my companies resemble the keys in my groupedContacts, in 1 array I have the company names and in the other I have the contacts of the companies.
Now I want to show them in multiple tables ofcourse like this
Table 1
Company A (id4)
- foo
- bar
Table2
Company B (id6)
- foo bar
Here's my code, unfortunately I get my 2 tables of my 2 companies but no contacts. And I get no errors whatsoever:
<div
v-for="(company, key) in companyList.models"
:key="key"
class="table table--hover mt-4"
>
<h4 class="mb-4" v-html="company.name" />
<table>
<thead>
<tr>
<th class="text-left" v-html="__t('name')" />
</tr>
</thead>
<tbody
v-for="(groupContacts, key) in groupedContacts"
:key="key"
v-if="company.id === key"
>
<tr
v-for="(contact, contactKey) in groupContacts"
:key="contactKey"
>
<td v-html="contact.name" />
</tr>
</tbody>
</table>
</div>
This is my result in my browser:

<td v-html="contact.name" />