Displaying differences for changeset |
@@ -1176,15 +1176,15 @@ |
let dialogContent = null |
const { isEditingStation, isCreatingStation } = props.manageProjects |
switch (activeStep) { |
- case 0: |
- dialogContent = renderStationDetailsStep() |
- break |
- case 1: |
- dialogContent = renderStationLocationStep(classes) |
- break |
- default: |
- dialogContent = renderStationDetailsStep() |
- break |
+ case 0: |
+ dialogContent = renderStationDetailsStep() |
+ break |
+ case 1: |
+ dialogContent = renderStationLocationStep(classes) |
+ break |
+ default: |
+ dialogContent = renderStationDetailsStep() |
+ break |
} |
return ( |
@@ -1255,7 +1255,7 @@ |
const errors = [] |
if (createProjectDetailsTitle === '') errors.push('detailsTitle') |
if (createProjectDetailsId === '') errors.push('detailsId') |
- if (createProjectDetailsEQIPNum === -1 || eqipIdAlreadyUsed) errors.push('detailsEQIPNum') |
+ if (createProjectDetailsEQIPNum === -1 || (eqipIdAlreadyUsed && !isEditingProject)) errors.push('detailsEQIPNum') |
if (createProjectDetailsTreatmentType === '') |
errors.push('detailsTreatmentType') |
if (createProjectDetailsStatus === '') errors.push('detailsStatus') |
@@ -1287,21 +1287,21 @@ |
const renderCreateProjectDialog = (classes) => { |
let dialogContent = null |
switch (activeStep) { |
- case 0: |
- dialogContent = renderProjectDetailsStep() |
- break |
- case 1: |
- dialogContent = renderCreateProjectGeometryStep(classes) |
- break |
- case 2: |
- dialogContent = renderProjectMembersStep(classes) |
- break |
- case 3: |
- dialogContent = renderProjectPracticesStep(classes) |
- break |
- default: |
- dialogContent = renderProjectDetailsStep() |
- break |
+ case 0: |
+ dialogContent = renderProjectDetailsStep() |
+ break |
+ case 1: |
+ dialogContent = renderCreateProjectGeometryStep(classes) |
+ break |
+ case 2: |
+ dialogContent = renderProjectMembersStep(classes) |
+ break |
+ case 3: |
+ dialogContent = renderProjectPracticesStep(classes) |
+ break |
+ default: |
+ dialogContent = renderProjectDetailsStep() |
+ break |
} |
return ( |