source id -> index

This commit is contained in:
VividTruthKeeper 2022-10-09 18:32:31 +05:00
parent 0586425e52
commit 58c9ae6f9b
1 changed files with 2 additions and 2 deletions

View File

@ -58,10 +58,10 @@ const Source = () => {
</thead> </thead>
<tbody> <tbody>
{sources ? ( {sources ? (
sources.map((source: LinksAll) => { sources.map((source: LinksAll, index: number) => {
return ( return (
<tr key={uuidv4()}> <tr key={uuidv4()}>
<td>{source.id}</td> <td>{index + 1}</td>
<td>{source.name}</td> <td>{source.name}</td>
<td className="category__table__tab"> <td className="category__table__tab">
{source.source} {source.source}