Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 1650 | Rev 1657 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1650 Rev 1656
Línea 60... Línea 60...
60
    }
60
    }
Línea 61... Línea 61...
61
 
61
 
62
    case feedActionTypes.ADD_COMMENT: {
62
    case feedActionTypes.ADD_COMMENT: {
63
      const { feedId, comment, totalComments } = payload
63
      const { feedId, comment, totalComments } = payload
64
      const feed = state.feeds.byId[feedId]
-
 
65
      feed.owner_comments = totalComments
-
 
Línea 66... Línea 64...
66
      feed.comments.push(comment)
64
      const feed = state.feeds.byId[feedId]
67
 
65
 
68
      return {
66
      return {
69
        ...state,
67
        ...state,
-
 
68
        feeds: {
70
        feeds: {
69
          ...state.feeds,
-
 
70
          byId: {
-
 
71
            ...state.feeds.byId,
-
 
72
            [feedId]: {
-
 
73
              ...feed,
-
 
74
              owner_comments: totalComments,
-
 
75
              comments: [comment, ...feed.comments]
71
          ...state.feeds,
76
            }
72
          byId: { ...state.feeds.byId, [feedId]: feed }
77
          }
73
        }
78
        }
Línea 74... Línea 79...
74
      }
79
      }