diff --git a/app/javascript/dashboard/components/ChatList.vue b/app/javascript/dashboard/components/ChatList.vue index 16d75b085afb5..892b7a1e3f862 100644 --- a/app/javascript/dashboard/components/ChatList.vue +++ b/app/javascript/dashboard/components/ChatList.vue @@ -154,11 +154,13 @@ const intersectionObserverOptions = computed(() => { }; }); -const isAdministrator = computed(() => currentRole.value === 'administrator'); +const isAdministrator = computed(() => { + return currentRole.value === 'administrator'; +}); const hideAllChatsForAgents = computed(() => { return ( - isFeatureEnabledonAccount.fn( + isFeatureEnabledonAccount.value( currentAccountId.value, 'hide_all_chats_for_agent' ) && !isAdministrator.value @@ -167,7 +169,7 @@ const hideAllChatsForAgents = computed(() => { const hideFiltersForAgents = computed(() => { return ( - isFeatureEnabledonAccount.fn( + isFeatureEnabledonAccount.value( currentAccountId.value, 'hide_filters_for_agent' ) && !isAdministrator.value @@ -176,7 +178,7 @@ const hideFiltersForAgents = computed(() => { const hideUnassignedForAgents = computed(() => { return ( - isFeatureEnabledonAccount.fn( + isFeatureEnabledonAccount.value( currentAccountId.value, 'hide_unassigned_for_agent' ) && !isAdministrator.value