mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-52512 fix ability to exclude archived channels in system console (#29122)
This commit is contained in:
@@ -106,11 +106,11 @@ export default class ChannelList extends React.PureComponent<ChannelListProps, C
|
||||
this.setState({page, loading: false});
|
||||
};
|
||||
|
||||
searchChannels = async (page = 0, term = '', filters = {}) => {
|
||||
searchChannels = async (page = 0, term = '', filters: ChannelSearchOpts = {}) => {
|
||||
let channels = [];
|
||||
let total = 0;
|
||||
let searchErrored = true;
|
||||
const response = await this.props.actions.searchAllChannels(term, {...filters, page, per_page: PAGE_SIZE, include_deleted: true, include_search_by_id: true});
|
||||
const response = await this.props.actions.searchAllChannels(term, {...filters, page, per_page: PAGE_SIZE, include_deleted: filters.deleted ?? true, include_search_by_id: true});
|
||||
if (response?.data) {
|
||||
channels = page > 0 ? this.state.channels.concat(response.data.channels) : response.data.channels;
|
||||
total = response.data.total_count;
|
||||
|
||||
Reference in New Issue
Block a user