Skip to content

Commit

Permalink
[frontend] Relationship popup window closes by itself when reverse th…
Browse files Browse the repository at this point in the history
…e direction (OpenCTI-Platform#4735)
  • Loading branch information
SarahBocognano authored and sbocahu committed Nov 27, 2023
1 parent 8ef1fd1 commit d8bb753
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ const StixCoreRelationshipCreationForm = ({
initialValues={initialValues}
validationSchema={stixCoreRelationshipValidator}
onSubmit={onSubmit}
onReset={handleClose}
>
{({ submitForm, handleReset, isSubmitting, setFieldValue, values }) => (
{({ submitForm, isSubmitting, setFieldValue, values }) => (
<Form style={{ paddingBottom: 50 }}>
<div className={classes.containerRelation}>
<div className={classes.relationCreate}>
Expand Down Expand Up @@ -333,7 +332,7 @@ const StixCoreRelationshipCreationForm = ({
<div className={classes.buttons}>
<Button
variant="contained"
onClick={handleReset}
onClick={handleClose}
disabled={isSubmitting}
classes={{ root: classes.button }}
>
Expand Down

0 comments on commit d8bb753

Please sign in to comment.