Skip to content

Commit

Permalink
Merge branch 'develop' into feat/cb2-14457
Browse files Browse the repository at this point in the history
  • Loading branch information
pbardy2000 authored Nov 22, 2024
2 parents 70000bb + cc22891 commit de4f62e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cvs-app-vtm",
"version": "1.27",
"version": "1.29",
"description": "DVSA CVS Vehicle Testing Management Application",
"main": "index.js",
"engines": {
Expand Down
4 changes: 3 additions & 1 deletion src/app/store/test-records/test-records.selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ export const selectDefectData = createSelector(selectedTestResultState, (testRes
export const isTestTypeOldIvaOrMsva = createSelector(toEditOrNotToEdit, (testResult) => {
return (
!!testResult?.testTypes[0]?.customDefects?.length &&
!!testResult?.testTypes[0]?.customDefects?.every((defect) => !!defect.referenceNumber)
!!testResult?.testTypes[0]?.customDefects?.every(
(defect) => !!defect.referenceNumber && !!defect.referenceNumber.trim()
)
);
});

Expand Down

0 comments on commit de4f62e

Please sign in to comment.