Skip to content

fix: can't sort when search some keyword in module install listΒ #669

@enpitsuLin

Description

@enpitsuLin

πŸ› The bug

Navigate to the modules tab and click Install New Module

image

if there are no search key word, sort option will work properly, but input something will break its functional, can't show sorted items as it should be

πŸ› οΈ To reproduce

https://stackblitz.com/github/nuxt/starter/tree/v3

🌈 Expected behavior

if user input some keyword then change sort key or toggle order, the module list should show sorted list of search result rather just search result

ℹ️ Additional context

When I want add some module and input keyword like 'auth' and I got Hebilicious/authjs-nuxt on the top of list instead sidebase, but the latter has more installed and stars than former, it confuse me.

and also found change sort option and click toggle order button there are nothing happen, it's broken

I think fundamental problem is fuse.js after checking code of this part, I will open a PR later

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions