This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new a3ff6f731 fix: config-ui stuck on loading page if any connection
reported 404 (#6310)
a3ff6f731 is described below
commit a3ff6f73187bc705cee7e18d8a907802a8c42a2b
Author: Klesh Wong <[email protected]>
AuthorDate: Tue Oct 24 16:16:13 2023 +0800
fix: config-ui stuck on loading page if any connection reported 404 (#6310)
---
config-ui/src/features/connections/slice.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config-ui/src/features/connections/slice.ts
b/config-ui/src/features/connections/slice.ts
index 1d8126beb..935379bff 100644
--- a/config-ui/src/features/connections/slice.ts
+++ b/config-ui/src/features/connections/slice.ts
@@ -37,7 +37,7 @@ const initialState: {
export const init = createAsyncThunk('connections/init', async () => {
const getConnections = async (plugin: string) => {
try {
- return API.connection.list(plugin);
+ return await API.connection.list(plugin);
} catch {
return [];
}