summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/lib/external-backends/backends/idoit-backend.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/external-backends/backends/idoit-backend.js b/server/lib/external-backends/backends/idoit-backend.js
index 0a8b164..1c328ec 100644
--- a/server/lib/external-backends/backends/idoit-backend.js
+++ b/server/lib/external-backends/backends/idoit-backend.js
@@ -355,7 +355,7 @@ class IdoitBackend extends ExternalBackends {
const boundObjects = await this.axiosRequest(c.url, getObjectsBodies, headers)
// Add contact assignment to the object.
- if (client.contacts) {
+ if (client.contacts && client.contacts.length > 0) {
// Get the persons ids.
const persons = boundObjects.filter(response => response.id.startsWith('READ_C__OBJTYPE__PERSON'))[0].result
let counter = 0