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 7bf7ec9..6a91100 100644
--- a/server/lib/external-backends/backends/idoit-backend.js
+++ b/server/lib/external-backends/backends/idoit-backend.js
@@ -924,7 +924,7 @@ 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
+ 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