Skip to content

Commit

Permalink
feat: docDetails is now an array of name,value struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Chang Sheng committed Feb 15, 2023
1 parent 39a8516 commit 95fee0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,13 +239,13 @@ <h1 class="text-xl lg:text-5xl font-semibold tracking-tight leading-tight lg:mb-
>
<table class="min-w-full">
<tbody>
<template x-for="d in approval?.docDetails ? Object.entries(approval?.docDetails): []">
<template x-for="d in approval?.docDetails">
<tr class="border-b">
<td
class="text-sm text-gray-900 font-medium px-6 whitespace-nowrap"
x-text="CamelToNormalCase(d[0])+':'"
x-text="d.name+':'"
></td>
<td class="text-sm text-gray-900 px-6 py-2 whitespace-nowrap" x-text="d[1]"></td>
<td class="text-sm text-gray-900 px-6 py-2 whitespace-nowrap" x-text="d.value"></td>
</tr>
</template>
</tbody>
Expand Down

0 comments on commit 95fee0c

Please sign in to comment.