diff --git a/api/src/utils/batch/shared-columns.ts b/api/src/utils/batch/shared-columns.ts index 558e61885..70007a6b6 100644 --- a/api/src/utils/batch/shared-columns.ts +++ b/api/src/utils/batch/shared-columns.ts @@ -321,12 +321,15 @@ export const WeatherInformation = [ 'Weather - Temperature', 'numeric', 'form_data.activity_subtype_data.Weather_Conditions.temperature' - ).build(), + ) + .isRequired() + .build(), new TemplateColumnBuilder( 'Weather - Wind Speed', 'numeric', 'form_data.activity_subtype_data.Weather_Conditions.wind_speed' ) + .isRequired() .valueRange(0, null) .build(), new TemplateColumnBuilder( @@ -334,6 +337,7 @@ export const WeatherInformation = [ 'codeReference', 'form_data.activity_subtype_data.Weather_Conditions.wind_direction_code' ) + .isRequired() .hardcodedCodes(WIND_DIRECTION_CODES) .build(), new TemplateColumnBuilder( @@ -341,6 +345,7 @@ export const WeatherInformation = [ 'codeReference', 'form_data.activity_subtype_data.Weather_Conditions.cloud_cover_code' ) + .isRequired() .referencesCode('cloud_cover_code') .build(), new TemplateColumnBuilder( @@ -348,6 +353,7 @@ export const WeatherInformation = [ 'codeReference', 'form_data.activity_subtype_data.Weather_Conditions.precipitation_code' ) + .isRequired() .referencesCode('precipitation_code') .build(), new TemplateColumnBuilder( diff --git a/api/src/utils/batch/templates/monitoring_chemical_treatment.ts b/api/src/utils/batch/templates/monitoring_chemical_treatment.ts index e464258b8..568a0aea4 100644 --- a/api/src/utils/batch/templates/monitoring_chemical_treatment.ts +++ b/api/src/utils/batch/templates/monitoring_chemical_treatment.ts @@ -93,9 +93,7 @@ MonitoringChemical.columns = [ 'Monitoring - Comments', 'text', 'form_data.activity_subtype_data.Monitoring_ChemicalTerrestrialAquaticPlant_Information[0].comment' - ) - .isRequired() - .build() + ).build() ]; MonitoringChemical.rowValidators = [ diff --git a/api/src/utils/batch/templates/monitoring_chemical_treatment_temp.ts b/api/src/utils/batch/templates/monitoring_chemical_treatment_temp.ts index dec39fa6a..9d52c864e 100644 --- a/api/src/utils/batch/templates/monitoring_chemical_treatment_temp.ts +++ b/api/src/utils/batch/templates/monitoring_chemical_treatment_temp.ts @@ -102,9 +102,7 @@ MonitoringChemicalTemp.columns = [ 'Monitoring - Comments', 'text', 'form_data.activity_subtype_data.Monitoring_ChemicalTerrestrialAquaticPlant_Information[0].comment' - ) - .isRequired() - .build() + ).build() ]; MonitoringChemicalTemp.rowValidators = [ diff --git a/api/src/utils/batch/templates/monitoring_mechanical_treatment.ts b/api/src/utils/batch/templates/monitoring_mechanical_treatment.ts index 020ea337d..eb5979fb3 100644 --- a/api/src/utils/batch/templates/monitoring_mechanical_treatment.ts +++ b/api/src/utils/batch/templates/monitoring_mechanical_treatment.ts @@ -93,9 +93,7 @@ MonitoringMechanical.columns = [ 'Monitoring - Comments', 'text', 'form_data.activity_subtype_data.Monitoring_MechanicalTerrestrialAquaticPlant_Information[0].comment' - ) - .isRequired() - .build() + ).build() ]; MonitoringMechanical.rowValidators = [ diff --git a/api/src/utils/batch/templates/monitoring_mechanical_treatment_temp.ts b/api/src/utils/batch/templates/monitoring_mechanical_treatment_temp.ts index 7fce94437..797a6d5f3 100644 --- a/api/src/utils/batch/templates/monitoring_mechanical_treatment_temp.ts +++ b/api/src/utils/batch/templates/monitoring_mechanical_treatment_temp.ts @@ -102,9 +102,7 @@ MonitoringMechanicalTemp.columns = [ 'Monitoring - Comments', 'text', 'form_data.activity_subtype_data.Monitoring_MechanicalTerrestrialAquaticPlant_Information[0].comment' - ) - .isRequired() - .build() + ).build() ]; MonitoringMechanicalTemp.rowValidators = [