fixup a87cc6cf: use the new index

This commit is contained in:
tophf 2017-12-24 03:12:45 +03:00
parent e7c89ba91c
commit 621640bd9f

View File

@ -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;