fixed recents call show call from another account (#467)

This commit is contained in:
Hoan Luu Huu
2024-11-14 09:25:48 +07:00
committed by GitHub
parent ae8b4ae124
commit e32664d0e0

View File

@@ -157,7 +157,10 @@ export const RecentCalls = () => {
{!hasValue(calls) && hasLength(accounts) ? (
<Spinner />
) : hasLength(calls) ? (
calls.map((call) => <DetailsItem key={call.call_sid} call={call} />)
//call.call_sid is null incase of failure, cannot be used as key
calls.map((call) => (
<DetailsItem key={call.sip_callid} call={call} />
))
) : (
<M>No data.</M>
)}