mirror of
https://github.com/urbit/developers.urbit.org.git
synced 2024-08-16 17:20:35 +03:00
components/search: amend for urbit.org glossary
This commit is contained in:
parent
a79676e788
commit
b7148b389b
@ -92,10 +92,13 @@ class Search extends Component {
|
||||
const urbitOrgSearch = fetch(this.urbitOrgSearch(encodeURIComponent(query)))
|
||||
.then((res) => res.json())
|
||||
.then((res) => {
|
||||
return res.results.map((item) => ({
|
||||
return [...res.glossary.map((item) => ({
|
||||
type: "GLOSSARY_RESULT",
|
||||
content: item
|
||||
})), ...res.results.map((item) => ({
|
||||
type: "URBIT_ORG_RESULT",
|
||||
content: item,
|
||||
}));
|
||||
}))];
|
||||
});
|
||||
|
||||
const opsSearch = fetch(this.opsSearch(encodeURIComponent(query)))
|
||||
|
Loading…
Reference in New Issue
Block a user