We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa579ef commit 544614bCopy full SHA for 544614b
src/app/shared/components/si/core/intacct-location-entity/intacct-location-entity.component.ts
@@ -155,7 +155,12 @@ export class IntacctLocationEntityComponent implements OnInit {
155
workspace: this.workspaceId,
156
detail: {}
157
};
158
- this.locationEntityOptions = [topLevelOption].concat(locationEntities);
+
159
+ // Only add top level option if there are multiple location entities
160
+ this.locationEntityOptions = locationEntities.length > 1
161
+ ? [topLevelOption].concat(locationEntities)
162
+ : locationEntities;
163
164
this.setupLocationEntityMapping();
165
});
166
}
0 commit comments