prevents create for incomplete records

pull/10616/head
Iris Scholten 2018-02-12 15:07:01 -08:00
parent 06e41d628a
commit fc00b95141
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,8 @@ class ProvidersTableRowNew extends Component {
text: role.name,
}))
const preventCreate = !provider || !providerOrganization
return (
<div className="fancytable--row">
<Dropdown
@ -85,6 +87,7 @@ class ProvidersTableRowNew extends Component {
<ConfirmButtons
onCancel={onCancel}
onConfirm={this.handleSaveNewMapping}
isDisabled={preventCreate}
/>
</div>
)