Skip to content

Commit

Permalink
modify the default values for select and multi select custom fields (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunaj5 authored Nov 4, 2024
1 parent 98dd82d commit 06f63f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/core/services/custom-fields.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ export class CustomFieldsService {
setDefaultValue(property: TxnCustomProperties, inputValue: string): TxnCustomProperties {
if (inputValue === 'BOOLEAN') {
property.value = false;
} else if (inputValue === 'SELECT' || inputValue === 'MULTI_SELECT') {
property.value = '';
} else if (inputValue === 'USER_LIST') {
} else if (inputValue === 'USER_LIST' || inputValue === 'MULTI_SELECT') {
property.value = [];
}

Expand Down

0 comments on commit 06f63f5

Please sign in to comment.