From 3052f6ecfa66cdfc249147ece2b9ca1b36f25bcd Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Tue, 1 Dec 2015 11:08:12 -0800 Subject: [PATCH] Also check that path is defined --- pages/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index.jsx b/pages/index.jsx index 0894e14..52497fd 100644 --- a/pages/index.jsx +++ b/pages/index.jsx @@ -21,7 +21,7 @@ export default class extends React.Component { for (i = 0, len = ref.length; i < len; i++) { page = ref[i]; title = ((ref1 = page.data) != null ? ref1.title : void 0) || page.path; - if (page.path !== "/" && !((ref2 = page.data) != null ? ref2.draft : void 0)) { + if (page.path && page.path !== "/" && !((ref2 = page.data) != null ? ref2.draft : void 0)) { pageLinks.push(
  • - ); + ) } }