Skip to content

Commit

Permalink
[frontend] Add x_opencti_type in onSubmitEntity (#7346)
Browse files Browse the repository at this point in the history
  • Loading branch information
marieflorescontact committed Jul 5, 2024
1 parent 4c03f67 commit 95d0a8e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1059,12 +1059,12 @@ const WorkbenchFileContentComponent = ({
};
if (updatedEntity.type === 'identity' && !updatedEntity.identity_class) {
updatedEntity.identity_class = resolveIdentityClass(entityType);
} else if (
updatedEntity.type === 'location'
&& !updatedEntity.x_opencti_location_type
) {
} else if (updatedEntity.type === 'location' && !updatedEntity.x_opencti_location_type) {
updatedEntity.x_opencti_location_type = entityType;
}
if (updatedEntity.type === 'threat-actor' && !updatedEntity.x_opencti_type) {
updatedEntity.x_opencti_type = entityType;
}
setStixDomainObjects(
uniqWithByFields(
uniqStixDomainObjectsFields,
Expand Down Expand Up @@ -1678,7 +1678,6 @@ const WorkbenchFileContentComponent = ({
objectMarking: convertMarkings(entity),
objectLabel: convertLabels(entity),
externalReferences: convertExternalReferences(entity),
x_opencti_type: entityType,
};
const attributes = R.filter(
(n) => R.includes(
Expand Down

0 comments on commit 95d0a8e

Please sign in to comment.