fix DLS query toggle (#27213) (#27229)

This commit is contained in:
Larry Gregory 2018-12-14 16:36:19 -05:00 committed by GitHub
parent 9c4929b603
commit 9eeed3bce9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -203,6 +203,7 @@ exports[`it renders without crashing 1`] = `
grow={true}
>
<EuiSwitch
checked={false}
compressed={true}
data-test-subj="restrictDocumentsQuery0"
label={
@ -213,7 +214,6 @@ exports[`it renders without crashing 1`] = `
/>
}
onChange={[Function]}
value={false}
/>
</EuiFlexItem>
</EuiFlexGroup>

View file

@ -208,8 +208,7 @@ class IndexPrivilegeFormUI extends Component<Props, State> {
}
// @ts-ignore
compressed={true}
// @ts-ignore
value={this.state.queryExpanded}
checked={this.state.queryExpanded}
onChange={this.toggleDocumentQuery}
/>
</EuiFlexItem>