Handle new rp on click outside
parent
b33aa32feb
commit
cef0e15bcd
|
@ -57,7 +57,7 @@ const DatabaseTable = ({
|
|||
onCancel={onCancelRetentionPolicy}
|
||||
onConfirm={onCreateRetentionPolicy}
|
||||
onStopEdit={onStopEditRetentionPolicy}
|
||||
handleClickOutside={() => onStopEditRetentionPolicy({database, retentionPolicy: rp})}
|
||||
handleClickOutside={() => rp.isNew ? onCancelRetentionPolicy({database, retentionPolicy: rp}) : onStopEditRetentionPolicy({database, retentionPolicy: rp})}
|
||||
/>
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue