Skip to content

Commit

Permalink
Fix isEnterprise already defined
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok committed Feb 8, 2023
1 parent df1727c commit 8513422
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions apps/meteor/client/views/admin/permissions/EditRolePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { FormProvider, useForm } from 'react-hook-form';

import GenericModal from '../../../components/GenericModal';
import VerticalBar from '../../../components/VerticalBar';
import { useIsEnterprise } from '../../../hooks/useIsEnterprise';
import RoleForm from './RoleForm';

const EditRolePage = ({ role, isEnterprise }: { role?: IRole; isEnterprise: boolean }): ReactElement => {
Expand All @@ -17,8 +16,6 @@ const EditRolePage = ({ role, isEnterprise }: { role?: IRole; isEnterprise: bool
const setModal = useSetModal();
const usersInRoleRouter = useRoute('admin-permissions');
const router = useRoute('admin-permissions');
const { data } = useIsEnterprise();
const isEnterprise = !!data?.isEnterprise;

const createRole = useEndpoint('POST', '/v1/roles.create');
const updateRole = useEndpoint('POST', '/v1/roles.update');
Expand Down

0 comments on commit 8513422

Please sign in to comment.