This is an automated email from the ASF dual-hosted git repository.

mintsweet 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 ac70ccce0 fix(config-ui): extra error when no env file (#6341)
ac70ccce0 is described below

commit ac70ccce0d14bc2d5041bad59a02096a8bcca9d5
Author: 青湛 <[email protected]>
AuthorDate: Thu Oct 26 23:13:25 2023 +1300

    fix(config-ui): extra error when no env file (#6341)
    
    Co-authored-by: Louis.z <[email protected]>
---
 config-ui/src/routes/layout/loader.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config-ui/src/routes/layout/loader.ts 
b/config-ui/src/routes/layout/loader.ts
index 7d0099080..4d486b68c 100644
--- a/config-ui/src/routes/layout/loader.ts
+++ b/config-ui/src/routes/layout/loader.ts
@@ -34,8 +34,8 @@ export const loader = async ({ request }: Props) => {
   try {
     const envPlugins = 
import.meta.env.DEVLAKE_PLUGINS.split(',').filter(Boolean);
     plugins = getRegisterPlugins().filter((plugin) => !envPlugins.length || 
envPlugins.includes(plugin));
-  } catch {
-    throw json({ error: ErrorEnum.API_OFFLINE }, { status: 503 });
+  } catch (err) {
+    plugins = getRegisterPlugins();
   }
 
   try {

Reply via email to