je veux juste eviter les erreurs 500
This commit is contained in:
@@ -84,6 +84,7 @@ export class EnfantsService {
|
||||
if (!child) {
|
||||
throw new NotFoundException(`Id d'enfant : ${id} introuvable`);
|
||||
}
|
||||
child.parentLinks = child.parentLinks ?? [];
|
||||
return child;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user