mirror of
https://github.com/urbit/developers.urbit.org.git
synced 2024-09-11 13:55:59 +03:00
components/search: fix ops results not appearing
This commit is contained in:
parent
ffc7b41f9e
commit
a79676e788
@ -62,7 +62,6 @@ class Search extends Component {
|
||||
.then((res) => res.json())
|
||||
.then(async (res) => {
|
||||
// Wrap results in an object which will tell React what component to use to render results.
|
||||
console.log(res)
|
||||
return [...res.glossary.map((item) => ({
|
||||
type: "GLOSSARY_RESULT",
|
||||
content: item
|
||||
@ -105,7 +104,7 @@ class Search extends Component {
|
||||
return [...res.glossary.map((item) => ({
|
||||
type: "GLOSSARY_RESULT",
|
||||
content: item
|
||||
})), res.results.map((item) => ({
|
||||
})), ...res.results.map((item) => ({
|
||||
type: "OPS_RESULT",
|
||||
content: item,
|
||||
}))];
|
||||
|
Loading…
Reference in New Issue
Block a user