Skip to content

Commit

Permalink
Updates draft parsing and validation reset (#1410)
Browse files Browse the repository at this point in the history
* Updates draft parsing and validation reset

* Version bump

* Simplify changes
  • Loading branch information
orelbn authored Jul 4, 2023
1 parent 7e2db1f commit 2930ffd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ppr-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ppr-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ppr-ui",
"version": "2.0.18",
"version": "2.0.19",
"private": true,
"appName": "Assets UI",
"sbcName": "SBC Common Components",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,6 @@ export const useNewMhrRegistration = () => {
const parseDescription = (): MhrRegistrationDescriptionIF => {
let description: MhrRegistrationDescriptionIF = getMhrRegistrationHomeDescription.value

// Apply default manufacturer
if (!description.manufacturer) {
description.manufacturer = '*'
}

description = cleanEmpty(description)
description.sections = Object.values(description.sections)
description.sectionCount = description.sections.length
Expand Down
3 changes: 1 addition & 2 deletions ppr-ui/src/views/newMhrRegistration/MhrRegistration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ export default defineComponent({
// Reset validations
setMhrTransferType(null)
setValidation(MhrSectVal.REVIEW_CONFIRM_VALID, MhrCompVal.VALIDATE_STEPS, false)
setValidation(MhrSectVal.REVIEW_CONFIRM_VALID, MhrCompVal.VALIDATE_APP, false)
resetAllValidations()
// page is ready to view
if (getMhrDraftNumber.value) {
Expand Down

0 comments on commit 2930ffd

Please sign in to comment.