Skip to content

Commit

Permalink
fix: update search keys in useFuse for subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
🎲 committed Dec 21, 2024
1 parent ef6ea41 commit c769b31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/renderer/src/container/subscriptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ export type SubscriptionsProps = {
export function Subscriptions({ onOpenSymlinksModal }: SubscriptionsProps) {
const navigate = useNavigate()
const subscriptions = useSubscriptions()
const { results, search, setSearch } = useFuse(subscriptions.data || [], '', ['modId', 'modName'])
const { results, search, setSearch } = useFuse(subscriptions.data || [], '', [
'subscription.modId',
'subscription.modName'
])

console.log(results)

useEffect(() => {
if (subscriptions.data?.some(({ state }) => state.progress !== 100 && !state.isFailed)) {
Expand Down

0 comments on commit c769b31

Please sign in to comment.