fix: tag collapse/expand not persisting

This commit is contained in:
Aman Harwara
2022-10-21 12:24:46 +05:30
parent ea285a36d8
commit c6e3580678

View File

@@ -81,7 +81,7 @@ export const TagsListItem: FunctionComponent<Props> = observer(
e.stopPropagation() e.stopPropagation()
const shouldShowChildren = !showChildren const shouldShowChildren = !showChildren
setShowChildren(shouldShowChildren) setShowChildren(shouldShowChildren)
tagsState.setExpanded(tag, !shouldShowChildren) tagsState.setExpanded(tag, shouldShowChildren)
}, },
[showChildren, tag, tagsState], [showChildren, tag, tagsState],
) )