Skip to content

Commit bedc786

Browse files
author
Jaap
committed
add sort as well
1 parent e9591ad commit bedc786

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/ChannelList.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ const ChannelList = withChatContext(
190190

191191
async componentDidUpdate(prevProps) {
192192
// do we need deepequal?
193-
if (!isEqual(prevProps.filters, this.props.filters)) {
193+
if (
194+
!isEqual(prevProps.filters, this.props.filters) ||
195+
!isEqual(prevProps.sort, this.props.sort)
196+
) {
194197
await this.setState({
195198
error: false,
196199
channels: Immutable([]),

0 commit comments

Comments
 (0)