Skip to content

Commit af38148

Browse files
committed
[fix] Displaying a link to call for maintainers when no maintainer exists.
1 parent 54fa2b0 commit af38148

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

components/organization/organization.jsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import Container from '../container/container';
33
import Contributors from '../contributors/contributors';
4+
import Link from '../link/link';
45
import Items from './projects.json';
56
import './organization-style';
67

@@ -55,7 +56,15 @@ export default props => {
5556
<Shield content={ `github/issues-pr-raw/${org.repo}` } label="prs" />
5657

5758
<h6>Maintainers</h6>
58-
<Contributors contributors={[ org.maintainer ]} />
59+
{
60+
(() => {
61+
if (org.maintainer) {
62+
return <Contributors contributors={[ org.maintainer ]} />;
63+
64+
} else return <Link to="https://github.com/webpack/webpack/issues/2734">Maintainer needed...</Link>;
65+
})()
66+
}
67+
5968
</div>
6069
))
6170
}

0 commit comments

Comments
 (0)