From 5c73ec1c9db8faaf873c40a1a66669a7d7001884 Mon Sep 17 00:00:00 2001 From: sharpshark28 Date: Thu, 17 Aug 2017 22:37:18 -0500 Subject: [PATCH] Sorting by level works as expected --- build/process_spells.js | 2 +- src/components/Spellitem.vue | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/build/process_spells.js b/build/process_spells.js index 49d55d0..15f9b0b 100644 --- a/build/process_spells.js +++ b/build/process_spells.js @@ -28,7 +28,7 @@ let indexedSpells = spellsWithIDs.map(spell => { id: spell.id, name: spell.name, classes: spell.classes, - level: spell.level, + level: spell.level.toLowerCase() === 'cantrip' ? 0 : parseInt(spell.level), link: '/spell/' + spell.id, } }) diff --git a/src/components/Spellitem.vue b/src/components/Spellitem.vue index 3db7ed8..422b044 100644 --- a/src/components/Spellitem.vue +++ b/src/components/Spellitem.vue @@ -1,7 +1,7 @@