mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-04-19 15:27:40 +00:00
clean up
This commit is contained in:
parent
11b36a7151
commit
845456d3fa
1 changed files with 1 additions and 3 deletions
|
@ -269,9 +269,7 @@ if (config.widgetFamily === 'large') {
|
|||
stack.layoutVertically()
|
||||
stack.spacing = spacing
|
||||
|
||||
let list = Object.entries(result.states)
|
||||
|
||||
list = list.sort((a, b) => {
|
||||
const list = Object.entries(result.states).sort((a, b) => {
|
||||
if(sortBy && a[1][sortBy] !== undefined && b[1][sortBy] !== undefined) {
|
||||
return a[1][sortBy] > b[1][sortBy]
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue