diff options
author | Vitaly Takmazov | 2018-06-18 21:45:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:52 +0300 |
commit | 4a71bb7c241e64dd722fa873385a2061d031d5e3 (patch) | |
tree | a57511f908814dc7c82637561e38a6fb4d18fd4b /vnext/src/components | |
parent | a2e984badda895b175cb522908cafc3defb73092 (diff) |
fix recommendations list
Diffstat (limited to 'vnext/src/components')
-rw-r--r-- | vnext/src/components/Thread.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index b847d618..64759122 100644 --- a/vnext/src/components/Thread.js +++ b/vnext/src/components/Thread.js @@ -68,12 +68,12 @@ export default class Thread extends React.Component { </div> </form> { - msg.recomm && ( - <div className="msg-recomms">{`Recommended by (${msg.recomm.length}):`} + msg.recommendations && ( + <div className="msg-recomms">{`Recommended by (${msg.recommendations.length}): `} { - msg.recomm.map((it, index) => ( - <a href="/{{ it }}/">{it}</a> - )) + msg.recommendations.map(it => ( + <a href={`/${it}/`}>{it}</a> + )).reduce((prev, curr) => [prev, ', ', curr]) } </div> ) |