Skip to content

Commit

Permalink
fix(config-ui): extra error when no env file (#6341)
Browse files Browse the repository at this point in the history
Co-authored-by: Louis.z <[email protected]>
  • Loading branch information
mintsweet and Startrekzky authored Oct 26, 2023
1 parent ca43963 commit ac70ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config-ui/src/routes/layout/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ac70ccc

Please sign in to comment.