Skip to content

Commit

Permalink
fix(config-ui): extra error when no env file
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet committed Oct 26, 2023
1 parent fc10491 commit e5b884a
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 e5b884a

Please sign in to comment.