From 3bf54d4aca5171051f7f86895298a3685548f3ef Mon Sep 17 00:00:00 2001 From: Mac Deluca Date: Mon, 15 Jul 2024 11:26:31 -0700 Subject: [PATCH] fix: incorrectly passing project id as survey id --- .../surveys/animals/list/components/AnimalListToolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/features/surveys/animals/list/components/AnimalListToolbar.tsx b/app/src/features/surveys/animals/list/components/AnimalListToolbar.tsx index a4f453bb45..3b31c76861 100644 --- a/app/src/features/surveys/animals/list/components/AnimalListToolbar.tsx +++ b/app/src/features/surveys/animals/list/components/AnimalListToolbar.tsx @@ -36,7 +36,7 @@ export const AnimalListToolbar = (props: IAnimaListToolbarProps) => { const handleImportAnimals = async (file: File) => { try { - await biohubApi.survey.importCrittersFromCsv(file, surveyContext.projectId, surveyContext.projectId); + await biohubApi.survey.importCrittersFromCsv(file, surveyContext.projectId, surveyContext.surveyId); surveyContext.critterDataLoader.refresh(surveyContext.projectId, surveyContext.surveyId); } catch (err: any) { dialogContext.setErrorDialog({