fix(types): refine user type definitions for assigned users in incident handling

This commit is contained in:
ghotso
2025-08-19 01:42:35 +02:00
parent b574073294
commit 1953d54dc5
3 changed files with 3 additions and 3 deletions
@@ -24,7 +24,7 @@ export const generatePdf = async (incident: IncidentItem): Promise<string> => {
}
// Fetch assigned user data if available
let assignedUser = null;
let assignedUser: { full_name?: string; username?: string } | null = null;
const assigneeId = incident?.assigned_users || incident?.assigned_to;
if (assigneeId) {
try {
@@ -146,7 +146,7 @@ export const addResolutionSection = (doc: jsPDF, incident: IncidentItem, yPos: n
/**
* Add the assignment information section to the PDF
*/
export const addAssignmentSection = (doc: jsPDF, incident: IncidentItem, yPos: number, assignedUser?: any): number => {
export const addAssignmentSection = (doc: jsPDF, incident: IncidentItem, yPos: number, assignedUser?: { full_name?: string; username?: string } | null): number => {
doc.setFontSize(14);
doc.setTextColor(30, 64, 175); // Blue-800
doc.text('Assignment Information', 15, yPos);