fix remaining build errors

This commit is contained in:
2026-05-01 08:30:36 +03:00
parent 8886abf589
commit 2c317fb0ec
24 changed files with 90 additions and 64 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ export default function PersonSpotlightRow({ personId, name, role, profilePath,
? (credits.crew || []).filter(c => c.job === 'Director')
: (credits.cast || [])
// Drop trivia / archival appearances and ultra-deep cuts.
.filter(c => COMMERCIAL_DEPARTMENTS.includes(c.department || 'Acting'))
.filter(c => COMMERCIAL_DEPARTMENTS.includes((c as { department?: string }).department || 'Acting'))
// De-dupe by id (a director may have multiple crew credits on one film
// when they're also writer; a cast member may appear twice for episodic