Skip to content

Commit

Permalink
fix: incorrectly passing project id as survey id
Browse files Browse the repository at this point in the history
  • Loading branch information
MacQSL committed Jul 15, 2024
1 parent e936fb1 commit 3bf54d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 3bf54d4

Please sign in to comment.