From 43b280fb5da7e8cda5b3ed8f80cb1eb475338bed Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Tue, 3 Sep 2024 18:50:11 -0400 Subject: [PATCH] fix: `getResponseModel` --- api/app/clients/BaseClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/clients/BaseClient.js b/api/app/clients/BaseClient.js index a57e424889..972716ee08 100644 --- a/api/app/clients/BaseClient.js +++ b/api/app/clients/BaseClient.js @@ -71,7 +71,7 @@ class BaseClient { * @returns {string} */ getResponseModel() { - if (this.options.agent.id && isAgentsEndpoint(this.options.endpoint)) { + if (isAgentsEndpoint(this.options.endpoint) && this.options.agent && this.options.agent.id) { return this.options.agent.id; }