mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 16:05:47 +01:00
🚧 Change query in SearchBar to use new API
This commit is contained in:
@@ -76,11 +76,7 @@ export default function SearchBar(props: any) {
|
|||||||
}
|
}
|
||||||
if (form.values.query.startsWith('!os')) {
|
if (form.values.query.startsWith('!os')) {
|
||||||
axios
|
axios
|
||||||
.get(
|
.get(`/api/modules/overseerr?query=${form.values.query.replace('!os ', '')}`)
|
||||||
`/api/modules/overseerr?query=${form.values.query.replace('!os ', '')}&id=${
|
|
||||||
OverseerrService?.id
|
|
||||||
}`
|
|
||||||
)
|
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
setOverseerrResults(res.data.results ?? []);
|
setOverseerrResults(res.data.results ?? []);
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user