|
|
@@ -28,7 +28,7 @@ const _arrangeByMaterial = artistsList => {
|
|
28
|
28
|
})
|
|
29
|
29
|
const flatPacked = []
|
|
30
|
30
|
Object.keys(byMaterial).forEach(material => {
|
|
31
|
|
- flatPacked.push({ slug: material, title: material })
|
|
|
31
|
+ flatPacked.push({ slug: material, title: material, inbetween: true })
|
|
32
|
32
|
byMaterial[material].forEach(artist => flatPacked.push(artist))
|
|
33
|
33
|
})
|
|
34
|
34
|
return flatPacked
|
|
|
@@ -45,12 +45,13 @@ const _arrangeByAlpha = artistsList => {
|
|
45
|
45
|
// The first artist you've seen in this batch
|
|
46
|
46
|
if(i == 0) {
|
|
47
|
47
|
seen = alphabet.indexOf[firstCharaOfLastWord]
|
|
48
|
|
- flatPacked.push({ slug: alphabet[seen], title: alphabet[seen] })
|
|
|
48
|
+ console.log(alphabet[seen], seen)
|
|
|
49
|
+ flatPacked.push({ slug: alphabet[seen], title: alphabet[seen], inbetween: true })
|
|
49
|
50
|
}
|
|
50
|
51
|
|
|
51
|
52
|
if (alphabet.indexOf(firstCharaOfLastWord) == seen + 1) {
|
|
52
|
53
|
seen++
|
|
53
|
|
- flatPacked.push({ slug: alphabet[seen], title: alphabet[seen] })
|
|
|
54
|
+ flatPacked.push({ slug: alphabet[seen], title: alphabet[seen], inbetween: true })
|
|
54
|
55
|
}
|
|
55
|
56
|
flatPacked.push(artist)
|
|
56
|
57
|
})
|