Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve undefined date error #247

Closed
wants to merge 1 commit into from

Conversation

jiahao1553
Copy link

Suggestion to fix when period is not available but periods with object array

Raw error:

Error while getting quality gate status :  - Cannot read properties of undefined (reading 'date') -  -  - 
file:///Users/******/.nvm/versions/node/v18.17.1/lib/node_modules/sonar-report/index.js:405
        json.projectStatus.period.date
                                  ^

TypeError: Cannot read properties of undefined (reading 'date')
    at generateReport (file:///Users/******/.nvm/versions/node/v18.17.1/lib/node_modules/sonar-report/index.js:405:35)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Error while getting quality gate status :  - Cannot read properties of undefined (reading 'date')
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

thecampagnards added a commit that referenced this pull request Apr 25, 2024
@thecampagnards
Copy link
Member

thecampagnards commented Apr 25, 2024

thx I doing a batch on this project it's implemented in faea957

Thx for your PR !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants