Skip to content

Commit 431ca92

Browse files
[frontend] Bulk entity creation of SDO/SCO with Copy/Pasting (#4352)
1 parent 6693a82 commit 431ca92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

opencti-platform/opencti-front/src/private/components/common/bulk/dialog/BulkRelationDialog.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,10 @@ const BulkRelationDialog : FunctionComponent<BulkRelationDialogProps> = ({
351351
bulkEntityListToEdit[entityIndex].representative = foundEntityType.representative;
352352
bulkEntityListToEdit[entityIndex].isExisting = true;
353353
}
354-
if (!foundEntityType) bulkEntityListToEdit[entityIndex].isExisting = false;
354+
if (!foundEntityType) {
355+
bulkEntityListToEdit[entityIndex].isExisting = false;
356+
bulkEntityListToEdit[entityIndex].representative = bulkEntityListToEdit[entityIndex].searchTerm;
357+
}
355358
bulkEntityListToEdit[entityIndex].selectedEntityType = value;
356359
bulkEntityListToEdit[entityIndex].isMatchingEntity = getRelationMatchStatus(value, entityTypeList ?? []);
357360
setBulkEntityList([...bulkEntityListToEdit]);

0 commit comments

Comments
 (0)