.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

View File

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