From 36588122e0154eb5436921bb4af6a61fb6bb3df8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sinan=20=C3=96zt=C3=BCrk?= Date: Thu, 29 Feb 2024 17:09:53 +0300 Subject: [PATCH] remove unnecesary variable --- .../components/extensible-form/extensible-form.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form.component.ts b/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form.component.ts index e8accb8eb4..46e7d1ea53 100644 --- a/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form.component.ts +++ b/npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form.component.ts @@ -44,7 +44,6 @@ export class ExtensibleFormComponent { const type = !record || JSON.stringify(record) === '{}' ? 'create' : 'edit'; const propList = this.extensions[`${type}FormProps`].get(this.identifier).props; this.groupedPropList = this.createGroupedList(propList); - this.groupedPropListOfArray = this.groupedPropList.items.map(i => i.formPropList.toArray()); this.record = record; } @@ -68,7 +67,7 @@ export class ExtensibleFormComponent { } isAnyGroupMemberVisible(index: number, data){ - const isVisible = this.groupedPropListOfArray[index].find(prop => prop.visible(data)); + const isVisible = this.groupedPropList.items.map(i => i.formPropList.toArray())[index].find(prop => prop.visible(data)); return isVisible; }