Skip to content

Commit 3db638f

Browse files
Merge pull request #110 from geoCML/multiple-recs-bug
Fix multiple recommendations bug
2 parents 041a0d5 + 530b926 commit 3db638f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build-resources/geocml-server/portal/src/components/Recommendations.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@ export function Recommendations() {
4646
</tr>
4747
</thead>
4848
<tbody>
49-
{ recommendations.map((recommendation, i) => {
49+
{ recommendations.map((recommendation) => {
5050
return (
5151
<tr>
5252
<td>
53-
{recommendation[i].title}
53+
{recommendation[0].title}
5454
</td>
5555
<td>
56-
{recommendation[i].description}
56+
{recommendation[0].description}
5757
</td>
5858
<td>
59-
{recommendation[i].owner}
59+
{recommendation[0].owner}
6060
</td>
6161
<td>
62-
<a href={recommendation[i].url}>{recommendation[i].url}</a>
62+
<a href={recommendation[0].url}>{recommendation[0].url}</a>
6363
</td>
64-
<td>{recommendation[i].tags.split(",").map((tag) => {
64+
<td>{recommendation[0].tags.split(",").map((tag) => {
6565
return (
6666
<span className="rounded bg-info p-2 mx-2">{tag}</span>
6767
)

0 commit comments

Comments
 (0)