Skip to content

Commit 935bada

Browse files
authored
make "phone" column visible if some contacts have a phone number
1 parent fb6845f commit 935bada

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/components/Mining/Table/MiningTable.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,9 @@ onNuxtReady(async () => {
10951095
];
10961096
10971097
await $contactsStore.reloadContacts();
1098+
if (contacts?.value?.some((contact) => contact.telephone !== null)) {
1099+
visibleColumns.value.push('telephone');
1100+
}
10981101
$contactsStore.subscribeToRealtimeUpdates();
10991102
11001103
isLoading.value = false;

0 commit comments

Comments
 (0)