leap: fix react-routing to links

This commit is contained in:
Matilde Park 2020-09-24 20:19:22 -04:00
parent d48772e309
commit 6506390238

View File

@ -117,7 +117,7 @@ export class Omnibox extends Component {
const { props } = this; const { props } = this;
this.setState({ results: this.initialResults(), query: '' }, () => { this.setState({ results: this.initialResults(), query: '' }, () => {
props.api.local.setOmnibox(); props.api.local.setOmnibox();
if (defaultApps.includes(app.toLowerCase()) || app === 'profile') { if (defaultApps.includes(app.toLowerCase()) || app === 'profile' || app === 'Links') {
props.history.push(link); props.history.push(link);
} else { } else {
window.location.href = link; window.location.href = link;