Skip to content

Commit 4607f08

Browse files
authored
Merge pull request #1361 from assemblycom/main
PROD | filter out deleted clients from company member list
2 parents 1d6c0c3 + 2e911d4 commit 4607f08

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils/CopilotAPI.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ export class CopilotAPI {
209209

210210
async _getCompanyClients(companyId: string): Promise<ClientResponse[]> {
211211
console.info('CopilotAPI#_getCompanyClients', this.token)
212-
return (await this.getClients({ limit: 10000, companyId })).data || []
212+
const clients = (await this.getClients({ limit: 10000, companyId })).data || []
213+
return clients.filter((c) => c.status !== 'deleted')
213214
}
214215

215216
async _getCustomFields(): Promise<CustomFieldResponse> {

0 commit comments

Comments
 (0)