fix: convert cids to string for comparison

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 97c086aba9
commit c47a1c4df4

@ -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([

Loading…
Cancel
Save