From 45fdd6e2f66dedc528a314cfb11094cb5a859ac2 Mon Sep 17 00:00:00 2001 From: Fredrik Oseberg Date: Wed, 14 Jul 2021 13:17:16 +0200 Subject: [PATCH] fix: return empty array if no features are found for project --- src/lib/db/project-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/db/project-store.ts b/src/lib/db/project-store.ts index 0510debddb..bd3f9e76cf 100644 --- a/src/lib/db/project-store.ts +++ b/src/lib/db/project-store.ts @@ -206,7 +206,7 @@ class ProjectStore { environments: o.environments.filter(f => f.name), })); } - throw new NotFoundError(`Could not find project with id ${projectId}`); + return []; } // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types