mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-18 06:28:34 +00:00
Bugs fixes
This commit is contained in:
parent
7aae48ad7c
commit
d9ecd52bcb
5 changed files with 9 additions and 6 deletions
|
|
@ -285,7 +285,7 @@ class ManageGranularAccessComponent extends React.Component {
|
|||
style={{ margin: '0', padding: '0', textDecoration: 'underline', color: '#3E63DD' }}
|
||||
href="https://docs.tooljet.com/docs/tutorial/manage-users-groups/"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
read documentation
|
||||
</a>{' '}
|
||||
|
|
|
|||
|
|
@ -254,6 +254,8 @@ class ManageGroupPermissionResourcesComponent extends React.Component {
|
|||
<a
|
||||
style={{ margin: '0', padding: '0', textDecoration: 'underline', color: '#3E63DD' }}
|
||||
href="https://docs.tooljet.com/docs/tutorial/manage-users-groups/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
read documentation
|
||||
</a>{' '}
|
||||
|
|
|
|||
|
|
@ -121,7 +121,8 @@ function InviteUsersForm({
|
|||
|
||||
const handleEditUser = (e) => {
|
||||
e.preventDefault();
|
||||
if (newRole) setIsChangeRoleModalOpen(true);
|
||||
if (newRole && EDIT_ROLE_MESSAGE?.[currentEditingUser?.role_group?.[0]?.name]?.[newRole?.value]?.())
|
||||
setIsChangeRoleModalOpen(true);
|
||||
else {
|
||||
editUser();
|
||||
}
|
||||
|
|
@ -174,7 +175,7 @@ function InviteUsersForm({
|
|||
}}
|
||||
confirmBtnProps={{ title: 'Continue' }}
|
||||
>
|
||||
<div>{EDIT_ROLE_MESSAGE?.[currentEditingUser?.role_group?.[0]?.name]?.[newRole?.value]()}</div>
|
||||
<div>{EDIT_ROLE_MESSAGE?.[currentEditingUser?.role_group?.[0]?.name]?.[newRole?.value]?.()}</div>
|
||||
</ModalBase>
|
||||
)}
|
||||
<div className="animation-fade invite-user-drawer-wrap">
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ function MultiSelectUser({
|
|||
useEffect(() => {
|
||||
setOptions(listOfOptions.current);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [selectedValues, listOfOptions.current]);
|
||||
}, [JSON.stringify(selectedValues), listOfOptions.current]);
|
||||
|
||||
const searchFunction = useCallback(
|
||||
async (query) => {
|
||||
|
|
|
|||
|
|
@ -779,9 +779,9 @@ export class OrganizationsService {
|
|||
|
||||
if (invalidRows.length) {
|
||||
const invalidFieldsArray = invalidFields.entries().next().value[1];
|
||||
const errorMsg = `Invalid row(s): [${invalidFieldsArray.join(', ')}] in [${
|
||||
const errorMsg = `Missing ${[invalidFieldsArray.join(',')]} information in ${
|
||||
invalidRows.length
|
||||
}] row(s). No users were uploaded.`;
|
||||
} row(s);. No users were uploaded, please update and try again.`;
|
||||
throw new BadRequestException(errorMsg);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue