.filter isn't in-place, now reassigning correctly
This commit is contained in:
parent
1036ac4e8b
commit
d0bd8b7d4c
|
@ -59,7 +59,7 @@ export default hasConfig ? {
|
||||||
let splitSearch = query.split(" ");
|
let splitSearch = query.split(" ");
|
||||||
|
|
||||||
// Detect search operators and remove them from the actual query
|
// Detect search operators and remove them from the actual query
|
||||||
splitSearch.filter(term => {
|
splitSearch = splitSearch.filter(term => {
|
||||||
if (term.startsWith("has:")) {
|
if (term.startsWith("has:")) {
|
||||||
let fileType = term.slice(4);
|
let fileType = term.slice(4);
|
||||||
constructedFilters.push(`mediaAttachment = "${fileType}"`)
|
constructedFilters.push(`mediaAttachment = "${fileType}"`)
|
||||||
|
|
Loading…
Reference in New Issue