Skip to content
Snippets Groups Projects
Commit ca3a5454 authored by Davor's avatar Davor
Browse files

fix build errors

parent e1d326e7
No related branches found
No related tags found
1 merge request!42Set all app roles to admin when admin dashboard role is selected
Pipeline #20780 passed with stages
in 3 minutes and 1 second
import React, { useEffect, useState } from 'react';
import _ from 'lodash';
import { TrashIcon } from '@heroicons/react/outline';
import { useController, useFieldArray, useForm, useFormState, useWatch } from 'react-hook-form';
import { useFieldArray, useForm, useFormState, useWatch } from 'react-hook-form';
import { Modal, ConfirmationModal } from 'src/components';
import { Input, Select } from 'src/components/Form';
import { User, UserRole, useUsers } from 'src/services/users';
......@@ -58,6 +58,7 @@ export const UserModal = ({ open, onClose, userId, setUserId }: UserModalProps)
if (isDirty) {
setDashboardRoleEdited(true);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [dashboardRole]);
const handleSave = async () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment