File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/components/ChannelList Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,14 @@ import { ChatContext } from '../../context';
2424 *
2525 * @example ../docs/ChannelList.md
2626 */
27+ const DEFAULT_FILTERS = { } ;
28+ const DEFAULT_OPTIONS = { } ;
29+ const DEFAULT_SORT = { } ;
30+
2731const ChannelList = ( props ) => {
2832 const {
2933 List = ChannelListMessenger ,
30- filters = { } ,
34+ filters = DEFAULT_FILTERS ,
3135 lockChannelOrder = false ,
3236 onAddedToChannel,
3337 onChannelDeleted,
@@ -37,9 +41,9 @@ const ChannelList = (props) => {
3741 onMessageNew,
3842 onRemovedFromChannel,
3943 onSelect,
40- options = { } ,
44+ options = DEFAULT_OPTIONS ,
4145 setFlatListRef,
42- sort = { } ,
46+ sort = DEFAULT_SORT ,
4347 } = props ;
4448
4549 const { client } = useContext ( ChatContext ) ;
You can’t perform that action at this time.
0 commit comments