mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-08-17 16:45:48 +00:00
Dropped the sections sorting
This commit is contained in:
parent
2c61153294
commit
56fd4e1a78
1 changed files with 0 additions and 8 deletions
|
|
@ -30,14 +30,6 @@ const settingsValues = {
|
|||
|
||||
const Settings = () => {
|
||||
const sections = Object.keys(settingsSections)
|
||||
.sort(function(a, b) {
|
||||
const valueA = SECTIONS_ORDER[a];
|
||||
const valueB = SECTIONS_ORDER[b];
|
||||
if (!isNaN(valueA) && !isNaN(valueB)) return valueA - valueB;
|
||||
if (!isNaN(valueA)) return -1;
|
||||
if (!isNaN(valueB)) return 1;
|
||||
return a - b;
|
||||
})
|
||||
.map((section) => ({
|
||||
id: section,
|
||||
inputs: settingsSections[section].inputs,
|
||||
|
|
|
|||
Loading…
Reference in a new issue