Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 1662 Rev 1665
Línea 58... Línea 58...
58
          ...state.feeds,
58
          ...state.feeds,
59
          byId: {
59
          byId: {
60
            ...state.feeds.byId,
60
            ...state.feeds.byId,
61
            [feedId]: {
61
            [feedId]: {
62
              ...feed,
62
              ...feed,
63
              comments: (feed.comments = feed.comments.filter(
63
              comments: feed.comments.filter(
64
                ({ unique }) => unique !== commentId
64
                ({ unique }) => unique !== commentId
65
              )),
65
              ),
66
              owner_comments: feed.owner_comments - 1
66
              owner_comments: feed.owner_comments - 1
67
            }
67
            }
68
          }
68
          }
69
        }
69
        }
70
      }
70
      }
Línea 81... Línea 81...
81
          byId: {
81
          byId: {
82
            ...state.feeds.byId,
82
            ...state.feeds.byId,
83
            [feedId]: {
83
            [feedId]: {
84
              ...feed,
84
              ...feed,
85
              owner_comments: feed.owner_comments + 1,
85
              owner_comments: feed.owner_comments + 1,
86
              comments: [...feed.comments, comment]
86
              comments: [...feed.comments, { ...comment, feedId }]
87
            }
87
            }
88
          }
88
          }
89
        }
89
        }
90
      }
90
      }
91
    }
91
    }