check if searchQuery (#226)
This commit is contained in:
parent
628f9ae3b0
commit
5aa0d1c98b
|
@ -45,6 +45,7 @@ export const ProfileSubscriptionsPage = () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
createEffect(() => {
|
createEffect(() => {
|
||||||
|
console.log('!!! subscriptionFilter():', subscriptionFilter())
|
||||||
if (following()) {
|
if (following()) {
|
||||||
if (subscriptionFilter() === 'users') {
|
if (subscriptionFilter() === 'users') {
|
||||||
setFiltered(following().filter((s) => 'name' in s))
|
setFiltered(following().filter((s) => 'name' in s))
|
||||||
|
@ -54,7 +55,9 @@ export const ProfileSubscriptionsPage = () => {
|
||||||
setFiltered(following())
|
setFiltered(following())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setFiltered(dummyFilter(following(), searchQuery(), lang()))
|
if (searchQuery()) {
|
||||||
|
setFiltered(dummyFilter(following(), searchQuery(), lang()))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user