Remove react warning
This commit is contained in:
parent
3f11b1cc18
commit
182c1b375c
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||||
|
|
Reference in a new issue