1
Fork 0

Remove react warning

This commit is contained in:
Jake Howard 2016-04-05 19:41:02 +01:00
parent 3f11b1cc18
commit 182c1b375c

View file

@ -4,7 +4,7 @@ export default class Breadcrumbs extends React.Component {
render() { render() {
const urlParts = Object.freeze(location.pathname.split('/').slice(1, -1)); const urlParts = Object.freeze(location.pathname.split('/').slice(1, -1));
if (urlParts.length < 2) { if (urlParts.length < 2) {
return; return null;
} }
var elements = []; var elements = [];
for (var i = 0; i < urlParts.length; i++) { for (var i = 0; i < urlParts.length; i++) {