JS Map Value
@track currentSelectedProduct = '{"01t1s000000j70VAAQ":{"Id":"01t1s000000j70VAAQ","Name":"test","ProductCode":"200299060003","Number__c":"CRM-000001","MOQ__c":10,"StandardCost__c":10,"Description":"Test"}}'
HTML Code
<template>
<div class="slds-box" if:true={showSelectedRecord}>
<table class="slds-table">
<tbody for:each={currentSelectedProduct} for:item="pro" key={pro.id}>
<tr class="slds-hint-parent">
<td>
<div class="slds-truncate" >{pro.Name}</div>
</td>
</tr>
</tbody>
</table>
</div>
</template>
I know that if "currentSelectedProduct" is a List, there will be no problem with this. But "currentSelectedProduct" is a Map, what do I need to do?