fix(inbounds): use sortedInbounds for mobile empty-state check

InboundList referenced an undefined visibleInbounds in the mobile
card list's empty-state guard, throwing "Cannot read properties of
undefined (reading 'length')" and breaking the entire mobile render.
This commit is contained in:
MHSanaei 2026-05-17 23:45:52 +02:00
parent 5f98a2db72
commit 84fbd23f1b
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A

View file

@ -216,7 +216,7 @@ function showQrCodeMenu(dbInbound) {
<a-space direction="vertical" :style="{ width: '100%' }">
<!-- ====================== Mobile: card list ======================= -->
<div v-if="isMobile" class="inbound-cards">
<div v-if="visibleInbounds.length === 0" class="card-empty"></div>
<div v-if="sortedInbounds.length === 0" class="card-empty"></div>
<div v-for="record in sortedInbounds" :key="record.id" class="inbound-card">
<!-- Header: id + remark + info + enable + actions -->