Bläddra i källkod

:recycle: flipping comparison to use override name for title creation

tags/0.9.0
J 4 år sedan
förälder
incheckning
42791f4736
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      vue-theme/src/store/modules/arrangements.js

+ 1
- 1
vue-theme/src/store/modules/arrangements.js Visa fil

56
         const lastWord = post.slug.split('-').filter(c => c).pop()
56
         const lastWord = post.slug.split('-').filter(c => c).pop()
57
         const firstCharaOflastWord = lastWord[0]
57
         const firstCharaOflastWord = lastWord[0]
58
         const firstCharaOfSortWord = post.sortname ? post.sortname[0] : 'z'
58
         const firstCharaOfSortWord = post.sortname ? post.sortname[0] : 'z'
59
-        const charaIndex = alphabet.indexOf(firstCharaOflastWord) < alphabet.indexOf(firstCharaOfSortWord) ? alphabet.indexOf(firstCharaOflastWord) : alphabet.indexOf(firstCharaOfSortWord)
59
+        const charaIndex = alphabet.indexOf(firstCharaOflastWord) > alphabet.indexOf(firstCharaOfSortWord) ? alphabet.indexOf(firstCharaOflastWord) : alphabet.indexOf(firstCharaOfSortWord)
60
 
60
 
61
         storeTitle(alphabet[charaIndex])
61
         storeTitle(alphabet[charaIndex])
62
         flatPacked.push(post)
62
         flatPacked.push(post)

Laddar…
Avbryt
Spara