@@ -87,7 +87,7 @@ class Search extends Component {
90− const glossaryResults = await fetch(this.glossarySearch(query))
90+ const glossarySearch = fetch(this.glossarySearch(query))
91 .then((res) => res.json())
91 .then((res) => res.json())
92 .then((res) => {
92 .then((res) => {
93 return res.results.map((item) => ({
93 return res.results.map((item) => ({
@@ -96,7 +96,7 @@ class Search extends Component {
99− const devResults = await fetch(this.devSearch(query))
99+ const devSearch = fetch(this.devSearch(query))
100 .then((res) => res.json())
100 .then((res) => res.json())
101 .then((res) => {
101 .then((res) => {
102 return res.results.map((item) => ({
102 return res.results.map((item) => ({
@@ -105,7 +105,7 @@ class Search extends Component {
108− const opsResults = await fetch(this.opsSearch(query))
108+ const opsSearch = fetch(this.opsSearch(query))
109 .then((res) => res.json())
109 .then((res) => res.json())
110 .then((res) => {
110 .then((res) => {
111 return res.results.map((item) => ({
111 return res.results.map((item) => ({
@@ -114,6 +114,12 @@ class Search extends Component {
117+ const [glossaryResults, devResults, opsResults] = await Promise.all([
117 const list = [
123 const list = [
118 ...glossaryResults,
124 ...glossaryResults,
119 ...patpResult,
125 ...patpResult,