Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

user_groups: Fix UserGroupRaw["direct_subgroup_ids"] type.

Anders Kaseorg41ec6c9b7c69
diff --git a/web/src/user_groups.ts b/web/src/user_groups.ts
index e36dcea0e0d..6d192d4b5a8 100644
--- a/web/src/user_groups.ts
+++ b/web/src/user_groups.ts
@@ -18,7 +18,10 @@ export type UserGroup = {
// The members field is a number array which we convert
// to a Set in the initialize function.
-type UserGroupRaw = Omit<UserGroup, "members"> & {members: number[]};
+type UserGroupRaw = Omit<UserGroup, "members" | "direct_subgroup_ids"> & {
+ members: number[];
+ direct_subgroup_ids: number[];
+};
type UserGroupForDropdownListWidget = {
name: string;