set selected member in practice report dropdown

This commit is contained in:
Bilal Catic
2019-07-07 02:58:11 +02:00
parent e3eee4139b
commit 79c8e9c9e2
2 changed files with 4 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ class PracticeSummaryReport extends Component {
render () {
const { memberIncidents, loading } = this.props;
const { memberId } = this.state;
return (
<Container>
@@ -49,7 +50,7 @@ class PracticeSummaryReport extends Component {
<Grid stackable columns="equal">
<Grid.Row>
<Grid.Column>
<MemberSelector onMemberSelect={this.onMemberSelectionUpdate.bind(this)} />
<MemberSelector onMemberSelect={this.onMemberSelectionUpdate.bind(this)} defaultMemberId={memberId} />
</Grid.Column>
<Grid.Column>
<DateRangePicker inlineButton onDatesUpdate={this.onDateRangeUpdate.bind(this)}/>