summaryrefslogtreecommitdiffstats
path: root/server/lib/external-backends/backends/idoit-backend.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/external-backends/backends/idoit-backend.js')
-rw-r--r--server/lib/external-backends/backends/idoit-backend.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/lib/external-backends/backends/idoit-backend.js b/server/lib/external-backends/backends/idoit-backend.js
index c538a31..7bf7ec9 100644
--- a/server/lib/external-backends/backends/idoit-backend.js
+++ b/server/lib/external-backends/backends/idoit-backend.js
@@ -923,6 +923,9 @@ class IdoitBackend extends ExternalBackends {
if (!rackObjects.result || !rack.result) return undefined
+ // Check if the parent object is a rack else return this function (Type C__CATS__ENCLOSURE)
+ if (!rack.result[0].type.const === 'C__CATS__ENCLOSURE' || !rack.result[0].type.title === 'Rack') return undefined
+
const rackName = rack.result[0].title
let rackSegmentId