Make frontend resistant to null start item
This commit is contained in:
@@ -20,7 +20,10 @@ for(let item of items.value) {
|
|||||||
<h2 class="item-box-title">start</h2>
|
<h2 class="item-box-title">start</h2>
|
||||||
<div style="display: flex; width: fit-content; height: fit-content; margin:auto;">
|
<div style="display: flex; width: fit-content; height: fit-content; margin:auto;">
|
||||||
<div style="margin-left: 5px; margin-right: 5px;" v-for="item in builds.start" >
|
<div style="margin-left: 5px; margin-right: 5px;" v-for="item in builds.start" >
|
||||||
<img style="border: 1px solid var(--color-on-surface);" width="64" height="64" :alt="item.data" :src="CDRAGON_BASE + mapPath(itemMap.get(item.data).iconPath)" />
|
<img v-if="item.data != null && item.data != undefined"
|
||||||
|
style="border: 1px solid var(--color-on-surface);"
|
||||||
|
width="64" height="64" :alt="item.data"
|
||||||
|
:src="CDRAGON_BASE + mapPath(itemMap.get(item.data).iconPath)" />
|
||||||
<h3 style="width: fit-content; margin:auto; margin-bottom: 10px;">{{ item.count }}</h3>
|
<h3 style="width: fit-content; margin:auto; margin-bottom: 10px;">{{ item.count }}</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user