From febdf2a02720c8eee2fc243bcdd8f95ae4f5211c Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 8 Feb 2021 00:03:14 -0500 Subject: [PATCH] Fix Category Labels --- frontend/src/Search/Table/CategoryLabel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Search/Table/CategoryLabel.js b/frontend/src/Search/Table/CategoryLabel.js index bdcbc0038..b2841f4c9 100644 --- a/frontend/src/Search/Table/CategoryLabel.js +++ b/frontend/src/Search/Table/CategoryLabel.js @@ -3,7 +3,7 @@ import React from 'react'; import Label from 'Components/Label'; function CategoryLabel({ categories }) { - const sortedCategories = categories.sort((c) => c.id); + const sortedCategories = categories.filter((cat) => cat.name !== undefined).sort((c) => c.id); return (