Make frontend resistant to null start item
All checks were successful
pipeline / build-and-push-images (push) Successful in 21s
pipeline / deploy (push) Successful in 6s

This commit is contained in:
2024-11-24 17:42:03 +01:00
parent 6c1c86ba18
commit 0d5df43142

View File

@@ -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>