From c47a1c4df416324493d1843ed08d39841494e15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Tue, 12 May 2020 14:57:37 -0400 Subject: [PATCH] fix: convert cids to string for comparison --- src/controllers/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/helpers.js b/src/controllers/helpers.js index a14ddde6e9..8ce5811cf0 100644 --- a/src/controllers/helpers.js +++ b/src/controllers/helpers.js @@ -222,7 +222,7 @@ async function getCategoryData(cids, uid, selectedCid, states) { if (selectedCid && !Array.isArray(selectedCid)) { selectedCid = [selectedCid]; } - + selectedCid = selectedCid && selectedCid.map(String); states = states || [categories.watchStates.watching, categories.watchStates.notwatching]; const [allowed, watchState, categoryData, isAdmin] = await Promise.all([