We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 502ca11 commit 70d39f9Copy full SHA for 70d39f9
src/components/ChannelList/hooks/useChannelListShape.ts
@@ -314,11 +314,6 @@ export const useChannelListShapeDefaults = () => {
314
const newTargetChannelIndex =
315
typeof lastPinnedChannelIndex === 'number' ? lastPinnedChannelIndex + 1 : 0;
316
317
- // skip re-render if the position of the channel does not change
318
- if (currentChannels[newTargetChannelIndex] === targetChannel) {
319
- return currentChannels;
320
- }
321
-
322
newChannels.splice(newTargetChannelIndex, 0, targetChannel);
323
324
return newChannels;
0 commit comments