fix build errors

This commit is contained in:
Davor 2022-06-28 08:06:28 +02:00
parent e1d326e7b1
commit ca3a5454d1

View file

@ -1,7 +1,7 @@
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 () => {