()
| 258 | }; |
| 259 | |
| 260 | const initialize = async () => { |
| 261 | setLoading(gettext('Loading...')); |
| 262 | try { |
| 263 | const res = await api.get(url_for('user_management.auth_sources')); |
| 264 | authSources.current = res.data; |
| 265 | updateList(); |
| 266 | } catch (error) { |
| 267 | setLoading(''); |
| 268 | pgAdmin.Browser.notifier.errorText(parseApiError(error)); |
| 269 | } |
| 270 | }; |
| 271 | |
| 272 | useEffect(() => { |
| 273 | initialize(); |
no test coverage detected