Handle new rp on click outside

pull/10616/head
Andrew Watkins 2017-03-20 14:56:46 -07:00
parent b33aa32feb
commit cef0e15bcd
1 changed files with 1 additions and 1 deletions

View File

@ -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})}
/>
)
})