refactor(machines) : remove TypeMachine skeleton system, simplify machine creation
- Remove TypeEdit*, TypeInfoDisplay, MachineSkeletonSummary, MachineCreatePreview components - Remove machine-skeleton pages and type pages - Remove useMachineTypesApi, useMachineSkeletonEditor, useMachineCreateSelections composables - Add AddEntityToMachineModal for direct entity linking - Update machine detail/create pages for direct custom fields - Fix SearchSelect, category display, and ipartial search filters Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -60,9 +60,8 @@ export const uniqueConstructeurIds = (...sources: unknown[]): string[] => {
|
||||
if (value.constructeur) {
|
||||
explore(value.constructeur);
|
||||
}
|
||||
// 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) {
|
||||
// Extract ID from constructeur-like objects, but skip component/piece/product entities
|
||||
if (typeof value.id === 'string' && !value.typeComposant && !value.typePiece && !value.typeProduct) {
|
||||
pushId(value.id);
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user