From 621640bd9f7be7df2c9b4be31155392db7023ee3 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 24 Dec 2017 03:12:45 +0300 Subject: [PATCH] fixup a87cc6cf: use the new index --- manage/manage.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/manage/manage.js b/manage/manage.js index 2979ffb9..96206fbe 100644 --- a/manage/manage.js +++ b/manage/manage.js @@ -109,12 +109,14 @@ function initGlobalEvents() { function showStyles(styles = []) { const sorted = sortStyles({ - styles: styles.map((style, index) => ({ + parser: 'style', + styles: styles.map(style => ({ style, - index, name: style.name.toLocaleLowerCase(), })), - parser: 'style', + }).map((info, index) => { + info.index = index; + return info; }); let index = 0; installed.dataset.total = styles.length;