diff --git a/app/client/src/reducers/uiReducers/commentsReducer/handleUpdateCommentThreadEvent.ts b/app/client/src/reducers/uiReducers/commentsReducer/handleUpdateCommentThreadEvent.ts index fcff6f63af..423b976788 100644 --- a/app/client/src/reducers/uiReducers/commentsReducer/handleUpdateCommentThreadEvent.ts +++ b/app/client/src/reducers/uiReducers/commentsReducer/handleUpdateCommentThreadEvent.ts @@ -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 || {}),