Trigger a state change after updating labels

This commit is contained in:
Jackson Harper 2022-04-19 15:36:12 -07:00
parent 51d723f3fb
commit 5d88b054c8

View file

@ -479,6 +479,8 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
[layout, setLayout]
)
const [, updateState] = useState({})
const StyledToggleButton = styled('button', {
p: '0px',
backgroundColor: 'transparent',
@ -737,6 +739,7 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
case 'refreshLabels':
if (props.labelsTarget) {
props.labelsTarget.node.labels = value as (Label[] | undefined)
updateState({})
}
break
}