Fix issues found during Electron testing. #7494

Fix application crash when using users dialog. #7607
This commit is contained in:
Aditya Toshniwal
2024-07-08 19:24:29 +05:30
parent dcfef154ce
commit 760e38293c
10 changed files with 135 additions and 107 deletions
@@ -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)=>{