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
+1 -1
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