|
|
@@ -21,9 +21,12 @@ import {
|
|
|
useSWRxUserGroupPages, useSWRxUserGroupRelationList, useSWRxChildUserGroupList, useSWRxUserGroup,
|
|
|
useSWRxSelectableParentUserGroups, useSWRxSelectableChildUserGroups, useSWRxAncestorUserGroups, useSWRxUserGroupRelations,
|
|
|
} from '~/stores/user-group';
|
|
|
+import loggerFactory from '~/utils/logger';
|
|
|
|
|
|
import styles from './UserGroupDetailPage.module.scss';
|
|
|
|
|
|
+const logger = loggerFactory('growi:services:AdminCustomizeContainer');
|
|
|
+
|
|
|
const UserGroupPageList = dynamic(() => import('./UserGroupPageList'), { ssr: false });
|
|
|
const UserGroupUserTable = dynamic(() => import('./UserGroupUserTable'), { ssr: false });
|
|
|
|
|
|
@@ -139,6 +142,8 @@ const UserGroupDetailPage = (props: Props): JSX.Element => {
|
|
|
|
|
|
const onClickSubmitForm = useCallback(async(targetGroup: IUserGroupHasId, userGroupData: IUserGroupHasId) => {
|
|
|
if (typeof userGroupData.parent === 'string') {
|
|
|
+ toastError(t('Something went wrong. Please try again.'));
|
|
|
+ logger.error('Something went wrong.');
|
|
|
return;
|
|
|
}
|
|
|
|