wip(frontend) : api calls + skeleton fetch
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user