Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed May 5, 2022
2 parents ffb7543 + 4b60be2 commit 8c3a249
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion lib/ui/app/entity_dropdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ class _EntityDropdownState extends State<EntityDropdown> {
},
onChanged: (value) {
_filter = value;
widget.onSelected(null);
if (hasValue) {
widget.onSelected(null);
}
},
suffixIconButton: iconButton,
);
Expand Down
9 changes: 5 additions & 4 deletions lib/ui/company_gateway/edit/company_gateway_edit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,22 +145,23 @@ class _CompanyGatewayEditState extends State<CompanyGatewayEdit>
children: <Widget>[
if (companyGateway.isNew)
EntityDropdown(
autofocus: true,
entityType: EntityType.gateway,
entityList:
memoizedGatewayList(state.staticState.gatewayMap),
labelText: localization.provider,
entityId: companyGateway.gatewayId,
onSelected: (SelectableEntity gateway) {
gateway ??= GatewayEntity();
viewModel.onChanged(
companyGateway.rebuild((b) => b
..feesAndLimitsMap[(gateway as GatewayEntity)
..feesAndLimitsMap[((gateway ?? GatewayEntity())
as GatewayEntity)
.defaultGatewayTypeId ??
kGatewayTypeCreditCard] =
FeesAndLimitsSettings(isEnabled: true)
..gatewayId = gateway.id
..gatewayId = gateway?.id ?? ''
..config = '{}'
..label = gateway.listDisplayName),
..label = gateway?.listDisplayName ?? ''),
);
},
),
Expand Down

0 comments on commit 8c3a249

Please sign in to comment.