mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 18:30:32 -06:00
fix: only get first page of surveys for survey list (#2186)
This commit is contained in:
@@ -42,7 +42,7 @@ export default async function SurveysPage({ params }) {
|
||||
if (!environment) {
|
||||
throw new Error("Environment not found");
|
||||
}
|
||||
const surveys = await getSurveys(params.environmentId);
|
||||
const surveys = await getSurveys(params.environmentId, 1); // workaround for now; only get the first page; better approach is in development
|
||||
|
||||
const environments = await getEnvironments(product.id);
|
||||
const otherEnvironment = environments.find((e) => e.type !== environment.type)!;
|
||||
|
||||
Reference in New Issue
Block a user