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