Skip to content

Commit

Permalink
[api] Fix stix data builder from input
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-julien committed Apr 6, 2021
1 parent ca84446 commit 29e0e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencti-platform/opencti-graphql/src/database/stix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 29e0e5a

Please sign in to comment.