MM-54887 Fix category order being reversed after moving a channel (#7628)
This commit is contained in:
parent
f30384eb22
commit
1a031cdbbe
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ export default class CategoryModel extends Model implements CategoryInterface {
|
|||
toCategoryWithChannels = async (): Promise<CategoryWithChannels> => {
|
||||
const categoryChannels = await this.categoryChannels.fetch();
|
||||
const orderedChannelIds = categoryChannels.sort((a, b) => {
|
||||
return b.sortOrder - a.sortOrder;
|
||||
return a.sortOrder - b.sortOrder;
|
||||
}).map((cc) => cc.channelId);
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue