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

View file

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