{
- if (props?.stixCoreObject) {
- const { name, entity_type, observable_value } = props.stixCoreObject;
- return
- {step === 0 && (
- setStep(1)}
- />
- )}
- {step === 1 && (
-
- )}
-
;
- }
- return renderLoader();
- }}
- />
+ {({ onClose }) => (
+ {
+ if (props?.stixCoreObject) {
+ const { name, entity_type, observable_value } = props.stixCoreObject;
+ return
+ {step === 0 && (
+ setStep(1)}
+ />
+ )}
+ {step === 1 && (
+ {
+ reset();
+ onClose();
+ }}
+ allowedRelationshipTypes={allowedRelationshipTypes}
+ isReversable={isReversable}
+ defaultStartTime={defaultStartTime}
+ defaultStopTime={defaultStopTime}
+ />
+ )}
+
;
+ }
+ return renderLoader();
+ }}
+ />
+ )}
);
};
diff --git a/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/views/indicators/EntityStixCoreRelationshipsIndicatorsEntitiesView.tsx b/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/views/indicators/EntityStixCoreRelationshipsIndicatorsEntitiesView.tsx
index 9d7371bb9695..c7d4c2990d71 100644
--- a/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/views/indicators/EntityStixCoreRelationshipsIndicatorsEntitiesView.tsx
+++ b/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/views/indicators/EntityStixCoreRelationshipsIndicatorsEntitiesView.tsx
@@ -218,7 +218,7 @@ const EntityStixCoreRelationshipsIndicatorsEntitiesView: FunctionComponent
- {isFABReplaced && (
+ {!isFABReplaced && (