nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.79k stars 154 forks source link

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

Closed enpitsuLin closed 1 month ago

enpitsuLin commented 1 month ago

🐛 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