0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

Merge pull request #860 from verdaccio/#857-deps-bug

fix: solves dependency bug for one dependency (#857)
This commit is contained in:
Juan Picado @jotadeveloper 2018-07-27 22:57:28 +02:00 committed by GitHub
commit ce1f7a9fb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ const Dependencies = ({dependencies = {}}) => {
const dependenciesList = Object.keys(dependencies); const dependenciesList = Object.keys(dependencies);
return ( return (
<Module title="Dependencies" className={classes.dependenciesModule}> <Module title="Dependencies" className={classes.dependenciesModule}>
{dependenciesList.length > 1 ? ( {dependenciesList.length > 0 ? (
renderDependenciesList(dependencies, dependenciesList) renderDependenciesList(dependencies, dependenciesList)
) : ( ) : (
<ModuleContentPlaceholder text="Zero Dependencies!" /> <ModuleContentPlaceholder text="Zero Dependencies!" />