diff --git a/app/src/features/surveys/components/EditSamplingMethod.tsx b/app/src/features/surveys/components/EditSamplingMethod.tsx index b00f6ae229..84577589f7 100644 --- a/app/src/features/surveys/components/EditSamplingMethod.tsx +++ b/app/src/features/surveys/components/EditSamplingMethod.tsx @@ -15,7 +15,7 @@ interface IEditSamplingMethodProps { export const SamplingSiteMethodYupSchema = yup.object({ method_lookup_id: yup.number().required(), - description: yup.string().required(), + description: yup.string(), periods: yup .array( yup.object({ @@ -27,7 +27,7 @@ export const SamplingSiteMethodYupSchema = yup.object({ .required('End date is required') }) ) - .hasUniqueDateRanges('Periods cannot overlap', 'start_date', 'end_state') + .hasUniqueDateRanges('Periods cannot overlap', 'start_date', 'end_date') .min(1, 'At least one time period is required') }); diff --git a/app/src/features/surveys/observations/sampling-sites/edit/SamplingSiteEditPage.tsx b/app/src/features/surveys/observations/sampling-sites/edit/SamplingSiteEditPage.tsx index 073d15be50..5a70aa5d9a 100644 --- a/app/src/features/surveys/observations/sampling-sites/edit/SamplingSiteEditPage.tsx +++ b/app/src/features/surveys/observations/sampling-sites/edit/SamplingSiteEditPage.tsx @@ -120,6 +120,7 @@ const SamplingSiteEditPage = () => { // create complete, navigate back to observations page history.push(`/admin/projects/${surveyContext.projectId}/surveys/${surveyContext.surveyId}/observations`); + surveyContext.sampleSiteDataLoader.refresh(surveyContext.projectId, surveyContext.surveyId); } catch (error) { showCreateErrorDialog({ dialogTitle: CreateSamplingSiteI18N.createErrorTitle,