diff --git a/frontend/src/store/channels.jsx b/frontend/src/store/channels.jsx index dde00729..347838bd 100644 --- a/frontend/src/store/channels.jsx +++ b/frontend/src/store/channels.jsx @@ -48,7 +48,10 @@ const useChannelsStore = create((set) => ({ set((state) => ({ channels: { ...state.channels, - ...newChannels, + ...newChannels.reduce((acc, channel) => { + acc[channel.id] = channel; + return acc; + }, {}), }, })),