1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

fix: return empty array if no features are found for project

This commit is contained in:
Fredrik Oseberg 2021-07-14 13:17:16 +02:00
parent 9e1cb27f96
commit 45fdd6e2f6

View File

@ -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