Commit 8e01d107 authored by janis.streib's avatar janis.streib 🦉
Browse files

FIX: error on filter on some pages

parent b1c885b2
Pipeline #114898 passed with stages
in 9 minutes and 14 seconds
...@@ -44,7 +44,9 @@ export default { ...@@ -44,7 +44,9 @@ export default {
type: Function, type: Function,
default() { default() {
return function (item, term) { return function (item, term) {
if (typeof term === 'string') {
term = term.toLowerCase() term = term.toLowerCase()
}
for (const v of Object.values(item)) { for (const v of Object.values(item)) {
if (typeof v === 'string') { if (typeof v === 'string') {
if (v.toLowerCase().includes(term)) { if (v.toLowerCase().includes(term)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment