Skip to content

Commit

Permalink
fix: models sort in model page (#13334)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxhlyh authored Feb 7, 2025
1 parent d4a0980 commit fec3bb4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ export const useMarketplaceAllPlugins = (providers: ModelProvider[], searchText:
category: PluginType.model,
exclude,
type: 'plugin',
sortBy: 'install_count',
sortOrder: 'DESC',
})
}
else {
Expand All @@ -284,6 +286,8 @@ export const useMarketplaceAllPlugins = (providers: ModelProvider[], searchText:
type: 'plugin',
pageSize: 1000,
exclude,
sortBy: 'install_count',
sortOrder: 'DESC',
})
}
}, [queryPlugins, queryPluginsWithDebounced, searchText, exclude])
Expand Down

0 comments on commit fec3bb4

Please sign in to comment.