-
Notifications
You must be signed in to change notification settings - Fork 6
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
Crash on projectMonth details #268
Comments
Steps to reproduce:
react-dom.production.min.js:189 TypeError: Cannot read properties of undefined (reading 'firstName') |
This crash is caused by missing data in projects. specifically the 'consultantId' and 'client.clientId' properties. const getConsultantFullName = (consultantId: string) => {
const consultant = consultants.find(c => c._id === consultantId) as ConsultantModel;
return `${consultant.firstName} ${consultant.name}`;
};
const getClientName = (clientId: string) => {
const client = clients.find(c => c._id === clientId) as ClientModel;
return client.name;
}; |
http://itenium.synology.me:9100/projects/645a34a614d3f534fc304f67
The text was updated successfully, but these errors were encountered: