Making WordPress.org


Ignore:
Timestamp:
08/26/2016 09:54:15 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Properly loop over developers array.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin/sections/developers/list.jsx

    r3865 r3866  
    11import React from 'react';
     2import values from 'lodash/values';
    23
    34export default React.createClass( {
     
    1011
    1112        return (
    12             <ul>
    13                 { this.props.contributors.map( contributor =>
    14                     <li>
     13            <ul className="plugin-developers">
     14                { values( this.props.contributors ).map( ( contributor, index ) =>
     15                    <li key={ index }>
    1516                        <img className="avatar avatar-32 photo" height="32" width="32" src={ contributor.avatar } />
    1617                        <a href={ contributor.profile }>{ contributor.display_name }</a>
Note: See TracChangeset for help on using the changeset viewer.