mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 00:15:48 +01:00
🐛 Fix a bug with searching just "!os" in overseerr
This commit is contained in:
@@ -81,7 +81,7 @@ export default function SearchBar(props: any) {
|
|||||||
}
|
}
|
||||||
if (form.values.query.startsWith('!os')) {
|
if (form.values.query.startsWith('!os')) {
|
||||||
axios
|
axios
|
||||||
.get(`/api/modules/overseerr?query=${form.values.query.replace('!os ', '')}`)
|
.get(`/api/modules/overseerr?query=${form.values.query.replace('!os', '').trim()}`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
setOverseerrResults(res.data.results ?? []);
|
setOverseerrResults(res.data.results ?? []);
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user