diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.jsx b/client/homebrew/editor/metadataEditor/metadataEditor.jsx index 5ad5c56e9..8bba6a135 100644 --- a/client/homebrew/editor/metadataEditor/metadataEditor.jsx +++ b/client/homebrew/editor/metadataEditor/metadataEditor.jsx @@ -205,15 +205,20 @@ const MetadataEditor = createClass({ renderAuthors : function(){ const authors = this.props.metadata.authors; - let text = 'None.'; - if(authors && authors.length){ - text = authors.join(', '); - } if(!this.state.isOwner || authors.length < 2) return (
- {text} + {authors.length > 0 && ( + + {authors[0]}{authors.length > 1 && ', '} + + )} + {authors.length > 1 && authors.slice(1).map((author, i)=>( + + {author}{i+2 < authors.length && ', '} + + ))}
); @@ -223,7 +228,7 @@ const MetadataEditor = createClass({