From c6e3580678dbed6562041ce5afed47563276843a Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Fri, 21 Oct 2022 12:24:46 +0530 Subject: [PATCH] fix: tag collapse/expand not persisting --- packages/web/src/javascripts/Components/Tags/TagsListItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/javascripts/Components/Tags/TagsListItem.tsx b/packages/web/src/javascripts/Components/Tags/TagsListItem.tsx index 85788f247..6983db42b 100644 --- a/packages/web/src/javascripts/Components/Tags/TagsListItem.tsx +++ b/packages/web/src/javascripts/Components/Tags/TagsListItem.tsx @@ -81,7 +81,7 @@ export const TagsListItem: FunctionComponent = observer( e.stopPropagation() const shouldShowChildren = !showChildren setShowChildren(shouldShowChildren) - tagsState.setExpanded(tag, !shouldShowChildren) + tagsState.setExpanded(tag, shouldShowChildren) }, [showChildren, tag, tagsState], )