mirror of
https://github.com/spacebarchat/server.git
synced 2026-06-04 02:11:38 +00:00
channelOrdering: fix null ref
This commit is contained in:
@@ -462,6 +462,8 @@ export class Guild extends BaseClass {
|
||||
select: { channel_ordering: true },
|
||||
});
|
||||
|
||||
guild.channel_ordering ??= [];
|
||||
|
||||
let position;
|
||||
if (typeof insertPoint == "string") position = guild.channel_ordering.indexOf(insertPoint) + 1;
|
||||
else position = insertPoint;
|
||||
|
||||
Reference in New Issue
Block a user