There was an error while loading. Please reload this page.
2 parents 1d6c0c3 + 2e911d4 commit 4607f08Copy full SHA for 4607f08
1 file changed
src/utils/CopilotAPI.ts
@@ -209,7 +209,8 @@ export class CopilotAPI {
209
210
async _getCompanyClients(companyId: string): Promise<ClientResponse[]> {
211
console.info('CopilotAPI#_getCompanyClients', this.token)
212
- return (await this.getClients({ limit: 10000, companyId })).data || []
+ const clients = (await this.getClients({ limit: 10000, companyId })).data || []
213
+ return clients.filter((c) => c.status !== 'deleted')
214
}
215
216
async _getCustomFields(): Promise<CustomFieldResponse> {
0 commit comments