diff --git a/projects/cdk/src/ingredient/ingredient-form-basic/ingredient-form-basic.component.ts b/projects/cdk/src/ingredient/ingredient-form-basic/ingredient-form-basic.component.ts index a1827cb..db317d8 100644 --- a/projects/cdk/src/ingredient/ingredient-form-basic/ingredient-form-basic.component.ts +++ b/projects/cdk/src/ingredient/ingredient-form-basic/ingredient-form-basic.component.ts @@ -168,7 +168,9 @@ export class IngredientFormBasicComponent implements OnChanges { vendors: [], }) if (currentStandard) { - this.currentPeoples = Object.entries(currentStandard['ingredient'] ?? {}).map(([k, v]) => { + this.currentPeoples = currentStandard['crows'].map((people: string) => { + const k = people + const v = currentStandard['ingredient']?.[k] return { label: k, value: k, @@ -176,6 +178,7 @@ export class IngredientFormBasicComponent implements OnChanges { ...(v as any), } }) + console.log('currentStandard', this.currentPeoples, currentStandard, this.menu?.crows) if (this.client) { return }