diff --git a/opencti-platform/opencti-graphql/src/database/stix.js b/opencti-platform/opencti-graphql/src/database/stix.js index f1ca84785418..480d66761dd2 100644 --- a/opencti-platform/opencti-graphql/src/database/stix.js +++ b/opencti-platform/opencti-graphql/src/database/stix.js @@ -105,7 +105,7 @@ const isDefinedValue = (element, diffMode) => { if (diffMode) return true; // If not in diff mode, we only take into account none empty element const isArray = Array.isArray(element); - if (isArray) return isArray.length > 0; + if (isArray) return element.length > 0; // If not array, check if empty return !R.isEmpty(element); }