You've already forked AstralRinth
forked from didirus/AstralRinth
Add slugs
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
</div>
|
||||
<ModCard
|
||||
v-for="mod in mods"
|
||||
:id="mod.id"
|
||||
:id="mod.slug ? mod.slug : mod.id"
|
||||
:key="mod.id"
|
||||
:author="mod.author"
|
||||
:name="mod.title"
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
</client-only>
|
||||
<SearchResult
|
||||
v-for="(result, index) in results"
|
||||
:id="result.mod_id.split('-')[1]"
|
||||
:id="result.slug ? result.slug : result.mod_id.split('-')[1]"
|
||||
:key="result.mod_id"
|
||||
:author="result.author"
|
||||
:name="result.title"
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<div class="mods">
|
||||
<SearchResult
|
||||
v-for="result in mods"
|
||||
:id="result.id"
|
||||
:id="result.slug ? result.slug : result.id"
|
||||
:key="result.id"
|
||||
:name="result.title"
|
||||
:description="result.description"
|
||||
|
||||
Reference in New Issue
Block a user