mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Trigger a state change after updating labels
This commit is contained in:
parent
51d723f3fb
commit
5d88b054c8
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue