Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6407 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6407 Rev 6408
Línea 48... Línea 48...
48
      const { feed, uuid } = payload
48
      const { feed, uuid } = payload
49
      const currentFeedIndex = state.allFeeds.findIndex(
49
      const currentFeedIndex = state.allFeeds.findIndex(
50
        (feed) => feed.feed_uuid === uuid
50
        (feed) => feed.feed_uuid === uuid
51
      )
51
      )
Línea 52... Línea 52...
52
 
52
 
-
 
53
      const newFeeds = structuredClone(state.allFeeds)
Línea 53... Línea 54...
53
      const updatedFeed = state.allFeeds[currentFeedIndex]
54
      newFeeds[currentFeedIndex] = feed
54
 
55
 
55
      return {
56
      return {
56
        ...state,
-
 
57
        allFeeds: [
-
 
58
          {
-
 
59
            ...feed,
-
 
60
            feed_unique: updatedFeed.feed_unique,
-
 
61
            feed_uuid: updatedFeed.feed_uuid,
-
 
62
          },
57
        ...state,
63
        ],
58
        allFeeds: newFeeds,
64
      }
59
      }
65
    case feedActionTypes.DELETE_FEED:
60
    case feedActionTypes.DELETE_FEED:
66
      return {
61
      return {