From 6b7dfaa5980b5c5f8d1994ddba3cafaf6e21de63 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Mon, 13 Dec 2021 01:58:47 -0500 Subject: [PATCH] Format --- js/src/common/helpers/listItems.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/common/helpers/listItems.tsx b/js/src/common/helpers/listItems.tsx index e6fb10478..0e8985fd3 100644 --- a/js/src/common/helpers/listItems.tsx +++ b/js/src/common/helpers/listItems.tsx @@ -75,13 +75,13 @@ export default function listItems( if (isVnode(item)) { classes.push(item.attrs?.itemClassName || item.itemClassName); - + if (item.tag.isActive?.(item.attrs)) { classes.push('active'); } } - const key = isVnode(item) && item?.attrs?.key || item.itemName; + const key = (isVnode(item) && item?.attrs?.key) || item.itemName; return (