[Fix] Refresh sidebar comments list when a thread is unresolved (#6326)
This commit is contained in:
parent
538fe8ea00
commit
5d6d9f75f4
|
|
@ -17,11 +17,11 @@ const handleUpdateCommentThreadEvent = (
|
|||
commentThreadInStore?.pinnedState?.active !==
|
||||
action.payload?.pinnedState?.active;
|
||||
|
||||
const isNowResolved =
|
||||
!commentThreadInStore?.resolvedState?.active &&
|
||||
const resolvedStateUpdated =
|
||||
!commentThreadInStore?.resolvedState?.active !==
|
||||
action.payload?.resolvedState?.active;
|
||||
|
||||
const shouldRefreshList = isNowResolved || pinnedStateChanged;
|
||||
const shouldRefreshList = resolvedStateUpdated || pinnedStateChanged;
|
||||
|
||||
state.commentThreadsMap[id] = {
|
||||
...(commentThreadInStore || {}),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user