From fda1c670bd5707b96a2cbcacf0c17b98171943f7 Mon Sep 17 00:00:00 2001 From: MrOrz Date: Tue, 16 Oct 2018 22:52:17 +0800 Subject: [PATCH] prop null handling --- components/Hyperlinks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Hyperlinks.js b/components/Hyperlinks.js index 3a56eebf..707ed122 100644 --- a/components/Hyperlinks.js +++ b/components/Hyperlinks.js @@ -113,7 +113,7 @@ function Hyperlink({ hyperlink = Map() }) { * @param {List} props.hyperlinks */ function Hyperlinks({ hyperlinks = List() }) { - if (hyperlinks.size === 0) return null; + if (!hyperlinks || hyperlinks.size === 0) return null; return (