From f92f17d5d889f4b738c63b231d41efb13b1aa461 Mon Sep 17 00:00:00 2001 From: rique223 Date: Tue, 30 Jul 2024 00:58:25 -0300 Subject: [PATCH] feat: :sparkles: Hide join default channels on user editing page --- .../views/admin/users/AdminUserForm.tsx | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/apps/meteor/client/views/admin/users/AdminUserForm.tsx b/apps/meteor/client/views/admin/users/AdminUserForm.tsx index eb9e5048637c..e983c9d440a1 100644 --- a/apps/meteor/client/views/admin/users/AdminUserForm.tsx +++ b/apps/meteor/client/views/admin/users/AdminUserForm.tsx @@ -353,20 +353,22 @@ const AdminUserForm = ({ userData, onReload, context, refetchUserFormData, roleD {errors?.roles && {errors.roles.message}} - - - {t('Join_default_channels')} - - ( - - )} - /> - - - + {isNewUserPage && ( + + + {t('Join_default_channels')} + + ( + + )} + /> + + + + )}