Do not show empty JObject in AddtionalData of views

This commit is contained in:
nicolas.dorier 2023-04-11 13:21:02 +09:00
parent f05a7f9f14
commit 1aaccb1e6b
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -7,7 +7,8 @@
(uriResult.Scheme == Uri.UriSchemeHttp || uriResult.Scheme == Uri.UriSchemeHttps);
}
}
@if (Model.Items.Count > 0)
{
<table class="table my-0" v-pre>
@foreach (var (key, value) in Model.Items)
{
@ -46,7 +47,7 @@
}
</td>
}
else
else if (subItems.Count > 0)
{
<td colspan="2" >
@{
@ -61,4 +62,4 @@
</tr>
}
</table>
}