You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Problem 1: When a user clicks the "Project name & PDF upload" link from the Plan Overview page, the following Type Error is thrown, "TypeError: Cannot read properties of undefined (reading 'identifier')", due to a missing PDF and the user is not able to progress. We should be adding a null check for "pdf" before trying to using "pdf.identifier".
The error appears to occur in the "get narrative ()" section of models.js on the line "pdf.file_name = pdf.identifier.split('/').pop();".
To Reproduce
Steps to reproduce the behavior:
Upload plan and select a plan that does not include a PDF
Click on "Project name & PDF upload"
Notice the error, as described above
Expected behavior
User should see a form where they can enter the Project name and upload a DMP PDF
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
Problem 1: When a user clicks the "Project name & PDF upload" link from the Plan Overview page, the following Type Error is thrown,
"TypeError: Cannot read properties of undefined (reading 'identifier')"
, due to a missing PDF and the user is not able to progress. We should be adding a null check for "pdf" before trying to using "pdf.identifier".The error appears to occur in the "get narrative ()" section of models.js on the line
"pdf.file_name = pdf.identifier.split('/').pop();"
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
User should see a form where they can enter the Project name and upload a DMP PDF
Screenshots
The text was updated successfully, but these errors were encountered: