mirror of
https://github.com/ivabus/gui
synced 2025-06-08 00:00:27 +03:00
lint
This commit is contained in:
parent
c6963c08d3
commit
8531041a23
1 changed files with 14 additions and 12 deletions
|
@ -23,7 +23,9 @@
|
||||||
const searchLimit = 5;
|
const searchLimit = 5;
|
||||||
|
|
||||||
const setPackages = (pkgs: GUIPackage[], isSearch?: boolean) => {
|
const setPackages = (pkgs: GUIPackage[], isSearch?: boolean) => {
|
||||||
packages = isSearch ? pkgs : pkgs.sort((a, b) => {
|
packages = isSearch
|
||||||
|
? pkgs
|
||||||
|
: pkgs.sort((a, b) => {
|
||||||
if (sortBy === 'popularity') {
|
if (sortBy === 'popularity') {
|
||||||
const aPop = +a.dl_count + a.installs;
|
const aPop = +a.dl_count + a.installs;
|
||||||
const bPop = +b.dl_count + b.installs;
|
const bPop = +b.dl_count + b.installs;
|
||||||
|
|
Loading…
Reference in a new issue