From 1ca25eff8e856c94e47c34011d20ba9b0b321323 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Wed, 1 Aug 2018 21:49:58 +0200 Subject: [PATCH] Fixed warnings --- rpdata-ui/src/common/List.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpdata-ui/src/common/List.js b/rpdata-ui/src/common/List.js index a8c2aa8..8831b0c 100644 --- a/rpdata-ui/src/common/List.js +++ b/rpdata-ui/src/common/List.js @@ -41,7 +41,7 @@ export function Item({link, name, icon, author, description, tags, fictionalDate function ItemMeta({kind, value, className}) { // Hide empty fields - if (value == null || value == "") { + if (value == null || value === "") { return null } @@ -62,5 +62,9 @@ function ItemMeta({kind, value, className}) { case "author": { return
{value}
} + + default: { + return null; + } } } \ No newline at end of file