Skip to content

Commit

Permalink
feat: hide add section button inside sections
Browse files Browse the repository at this point in the history
  • Loading branch information
gowtham-balaganesh committed Sep 20, 2024
1 parent b990d5e commit ce16585
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,13 @@ export class FormBuilderFieldDragDropItem {
hasCustomProperty(this.dataProvider, objProductConfig.defaultTagKey) &&
!this.dataProvider[objProductConfig.defaultTagKey];

const isCustomDropdownField =
!isDefaultNonCustomField && isDropdownField(this.dataProvider);

const showDynamicFieldSections =
this.dynamicSectionsBetaEnabled &&
!isDefaultNonCustomField &&
isDropdownField(this.dataProvider);
isCustomDropdownField &&
!this.sectionName;

let choicesWithNoSectionCreated = [],
noOfSections = 0,
Expand Down

0 comments on commit ce16585

Please sign in to comment.