.filter isn't in-place, now reassigning correctly

This commit is contained in:
PrivateGER 2023-05-26 02:31:10 +02:00 committed by PrivateGER
parent 1036ac4e8b
commit d0bd8b7d4c
1 changed files with 1 additions and 1 deletions

View File

@ -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}"`)