wip(frontend) : api calls + skeleton fetch

This commit is contained in:
2026-01-12 13:03:41 +01:00
parent e99f053233
commit b5af7f13b6
6 changed files with 24 additions and 3 deletions

View File

@@ -60,7 +60,9 @@ export const uniqueConstructeurIds = (...sources: unknown[]): string[] => {
if (value.constructeur) {
explore(value.constructeur);
}
if (typeof value.id === 'string') {
// Only extract ID if this looks like a constructeur object (has @type or recognizable fields)
// Don't extract ID from component/piece/product objects that happen to be passed in
if (typeof value.id === 'string' && !value.name && !value.typeComposant && !value.typePiece && !value.typeProduct) {
pushId(value.id);
}
return;