Fix search tab not focusing correctly (#1529)

This commit is contained in:
toasted-nutbread 2021-03-15 18:53:03 -04:00 committed by GitHub
parent 49b603c756
commit 9addd3f6d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -762,8 +762,9 @@ class Backend {
}; };
const openInTab = async () => { const openInTab = async () => {
const tab = await this._findTabs(1000, false, predicate, false); const tabInfo = await this._findTabs(1000, false, predicate, false);
if (tab !== null) { if (tabInfo !== null) {
const {tab} = tabInfo;
await this._focusTab(tab); await this._focusTab(tab);
if (queryParams.query) { if (queryParams.query) {
await this._updateSearchQuery(tab.id, queryParams.query, true); await this._updateSearchQuery(tab.id, queryParams.query, true);