From 182c1b375cdebf1a9bb7fb3afe49a60d66843811 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 5 Apr 2016 19:41:02 +0100 Subject: [PATCH] Remove react warning --- static/src/js/components/breadcrumbs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/src/js/components/breadcrumbs.js b/static/src/js/components/breadcrumbs.js index dd24ceb..3565a10 100644 --- a/static/src/js/components/breadcrumbs.js +++ b/static/src/js/components/breadcrumbs.js @@ -4,7 +4,7 @@ export default class Breadcrumbs extends React.Component { render() { const urlParts = Object.freeze(location.pathname.split('/').slice(1, -1)); if (urlParts.length < 2) { - return; + return null; } var elements = []; for (var i = 0; i < urlParts.length; i++) {