Shun Miyazawa 1 год назад
Родитель
Сommit
0580636d45
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      apps/app/src/components/Admin/UserGroup/UserGroupForm.tsx

+ 5 - 1
apps/app/src/components/Admin/UserGroup/UserGroupForm.tsx

@@ -21,6 +21,8 @@ export const UserGroupForm: FC<Props> = (props: Props) => {
   const {
     userGroup, parentUserGroup, selectableParentUserGroups, submitButtonLabel, onSubmit, isExternalGroup = false,
   } = props;
+
+  console.log('selectableParentUserGroups', selectableParentUserGroups);
   /*
    * State
    */
@@ -50,6 +52,8 @@ export const UserGroupForm: FC<Props> = (props: Props) => {
 
   const isSelectableParentUserGroups = selectableParentUserGroups != null && selectableParentUserGroups.length > 0;
 
+  console.log('isSelectableParentUserGroups', isSelectableParentUserGroups);
+
   const isChildUserGroup = parentUserGroup !== undefined;
   const messageAtReleaseParentGroup = isChildUserGroup ? t('user_group_management.release_parent_group') : t('user_group_management.select_parent_group');
 
@@ -116,7 +120,7 @@ export const UserGroupForm: FC<Props> = (props: Props) => {
             <button
               type="button"
               id="dropdownMenuButton"
-              data-toggle="dropdown"
+              data-bs-toggle="dropdown"
               className="btn btn-outline-secondary dropdown-toggle mb-3"
               disabled={isExternalGroup || !isSelectableParentUserGroups}
             >