mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-05 18:57:03 -05:00
Fix issues found during Electron testing. #7494
Fix application crash when using users dialog. #7607
This commit is contained in:
@@ -317,7 +317,7 @@ function UserManagementDialog({onClose}) {
|
||||
const [roles, setRoles] = React.useState([]);
|
||||
const api = getApiInstance();
|
||||
|
||||
React.useEffect(async ()=>{
|
||||
const fetchData = async ()=>{
|
||||
try {
|
||||
api.get(url_for('user_management.auth_sources'))
|
||||
.then(res=>{
|
||||
@@ -337,6 +337,10 @@ function UserManagementDialog({onClose}) {
|
||||
} catch (error) {
|
||||
pgAdmin.Browser.notifier.error(parseApiError(error));
|
||||
}
|
||||
};
|
||||
|
||||
React.useEffect(()=>{
|
||||
fetchData();
|
||||
}, []);
|
||||
|
||||
const onSaveClick = (_isNew, changeData)=>{
|
||||
|
||||
Reference in New Issue
Block a user