Skip to content

Commit

Permalink
fix: don't display 'please select' in the cost center selection dropd…
Browse files Browse the repository at this point in the history
…own if a cost center has already been assigned to a basket
  • Loading branch information
SGrueber committed Oct 22, 2021
1 parent b4d9c38 commit 8a2a6d3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class BasketCostCenterSelectionComponent implements OnInit, OnDestroy {
required: true,
hideRequiredMarker: true,
options,
placeholder: options.length > 1 ? 'account.option.select.text' : undefined,
placeholder: options.length > 1 && !this.model?.costCenter ? 'account.option.select.text' : undefined,
},
hooks: {
// set automatically a cost center at basket if there is only 1 cost center assigned to this user
Expand Down

0 comments on commit 8a2a6d3

Please sign in to comment.