Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,13 @@ export class IndexTable extends Component {
const { filterChanged, filterFromURI } = this.props;
if (filterFromURI) {
const decodedFilter = decodeURIComponent(filterFromURI);
filterChanged(EuiSearchBar.Query.parse(decodedFilter));

try {
const filter = EuiSearchBar.Query.parse(decodedFilter);
filterChanged(filter);
} catch (e) {
this.setState({ filterError: e });
}
}
}
componentWillUnmount() {
Expand All @@ -122,7 +128,8 @@ export class IndexTable extends Component {
return;
}
return (
<Fragment>
<>
<EuiSpacer />
<EuiCallOut
iconType="faceSad"
color="danger"
Expand All @@ -134,8 +141,8 @@ export class IndexTable extends Component {
},
})}
/>
<EuiSpacer size="l" />
</Fragment>
<EuiSpacer />
</>
);
}
onFilterChanged = ({ query, error }) => {
Expand Down