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

mintsweet pushed a commit to branch fix-no-env
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit e5b884a8ad8f73a5f7e11379bcc695ba6ae5a362
Author: mintsweet <[email protected]>
AuthorDate: Thu Oct 26 22:09:09 2023 +1300

    fix(config-ui): extra error when no env file
---
 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