fix: tag collapse/expand not persisting
This commit is contained in:
@@ -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],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user