Fix JavaScript runtime errors for undefined name property access

- Add null checks to prevent "Cannot read properties of undefined (reading 'name')" errors
- Fix ProjectCard, MembersList, ProjectsView, DiscoverView, ProjectViewView components
- Add null validation in DIDView.claimDescription() and ClaimReportCertificateView.drawCanvas()
- Add missing databaseUtil import in MembersList component
- Use meaningful fallback text for undefined names ("Unnamed Project", "Unnamed Member")
- Resolves template rendering crashes when entities lack name properties
This commit is contained in:
Matthew Raymer
2025-07-05 05:38:20 +00:00
parent 1db420a066
commit 91a1618f40
8 changed files with 90 additions and 46 deletions

View File

@@ -70,6 +70,10 @@ export default class ClaimReportCertificateView extends Vue {
}
async drawCanvas(claimData: GenericCredWrapper<GenericVerifiableCredential>) {
if (!claimData || !claimData.claim) {
return;
}
const platformService = PlatformServiceFactory.getInstance();
const dbAllContacts = await platformService.dbQuery(
"SELECT * FROM contacts",