Fix no image on manage
This commit is contained in:
@ -1011,11 +1011,12 @@
|
|||||||
`<img src="/media/compressed/${checkin.photos}" class="h-20 w-20 object-cover rounded" onclick="showLargeImage(this.src)">` : ''}
|
`<img src="/media/compressed/${checkin.photos}" class="h-20 w-20 object-cover rounded" onclick="showLargeImage(this.src)">` : ''}
|
||||||
</td>
|
</td>
|
||||||
<td class="px-2 py-3">
|
<td class="px-2 py-3">
|
||||||
${checkin.cp_number===-1 || checkin.image_address===null ? "" :
|
${checkin.image_address ?
|
||||||
`<img src="${checkin.image_address}"
|
`<img src="${checkin.image_address}"
|
||||||
class="h-20 w-20 object-cover rounded"
|
class="h-20 w-20 object-cover rounded"
|
||||||
onclick="showLargeImage(this.src)"
|
onclick="showLargeImage(this.src)"
|
||||||
onerror="this.parentElement.innerHTML=''">`}
|
onerror="this.parentElement.innerHTML='画像読込エラー'">`
|
||||||
|
: ''}
|
||||||
</td>
|
</td>
|
||||||
<td class="px-2 py-3 ${bgColor}">
|
<td class="px-2 py-3 ${bgColor}">
|
||||||
<div class="font-bold">${checkin.sub_loc_id}</div>
|
<div class="font-bold">${checkin.sub_loc_id}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user