mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
.filter isn't in-place, now reassigning correctly
This commit is contained in:
parent
85403efe4e
commit
de3089937d
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ export default hasConfig ? {
|
|||
let splitSearch = query.split(" ");
|
||||
|
||||
// Detect search operators and remove them from the actual query
|
||||
splitSearch.filter(term => {
|
||||
splitSearch = splitSearch.filter(term => {
|
||||
if (term.startsWith("has:")) {
|
||||
let fileType = term.slice(4);
|
||||
constructedFilters.push(`mediaAttachment = "${fileType}"`)
|
||||
|
|
Loading…
Add table
Reference in a new issue