fix: add type annotation to survey copy results array to resolve TypeScript build error

This commit is contained in:
Bhagya Amarasinghe
2026-03-03 21:23:24 +05:30
parent 95f3950123
commit 044e14b05c

View File

@@ -135,7 +135,7 @@ export const CopySurveyForm = ({ defaultProjects, survey, onCancel, setOpen }: C
});
});
const results = [];
const results: Awaited<ReturnType<typeof copySurveyToOtherEnvironmentAction>>[] = [];
for (const item of copyOperationsWithMetadata) {
const result = await copySurveyToOtherEnvironmentAction({
surveyId: survey.id,