.filter isn't in-place, now reassigning correctly
This commit is contained in:
parent
1036ac4e8b
commit
d0bd8b7d4c
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…
Reference in a new issue