Add eslint
This commit is contained in:
@@ -91,11 +91,15 @@ export const selectCurrentRoomChannels = createSelector(
|
||||
/** Selects only text channels, sorted by position. */
|
||||
export const selectTextChannels = createSelector(
|
||||
selectCurrentRoomChannels,
|
||||
(channels) => channels.filter(channel => channel.type === 'text').sort((a, b) => a.position - b.position)
|
||||
(channels) => channels
|
||||
.filter((channel) => channel.type === 'text')
|
||||
.sort((channelA, channelB) => channelA.position - channelB.position)
|
||||
);
|
||||
|
||||
/** Selects only voice channels, sorted by position. */
|
||||
export const selectVoiceChannels = createSelector(
|
||||
selectCurrentRoomChannels,
|
||||
(channels) => channels.filter(channel => channel.type === 'voice').sort((a, b) => a.position - b.position)
|
||||
(channels) => channels
|
||||
.filter((channel) => channel.type === 'voice')
|
||||
.sort((channelA, channelB) => channelA.position - channelB.position)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user