File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/app/shared/form/builder/ds-dynamic-form-ui/models Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,6 @@ export class DynamicComplexModel extends DynamicConcatModel {
109109 // remove undefined values
110110 values = values . filter ( v => v ) ;
111111
112- // if funding type is `EU`
113- let isEUFund = false ;
114112 values . forEach ( ( val , index ) => {
115113 if ( val . value ) {
116114 // do not set value if it bigger than allowed length
@@ -123,13 +121,8 @@ export class DynamicComplexModel extends DynamicConcatModel {
123121 if ( this . name === SPONSOR_METADATA_NAME ) {
124122 // if funding type is `EU`
125123 if ( index === FUNDING_TYPE_INDEX && DEFAULT_EU_FUNDING_TYPES . includes ( val . value ) ) {
126- isEUFund = true ;
127- }
128- // if funding type is `EU` and input field is `openaire_id` -> show `openaire_id` readonly input field
129- if ( index === EU_IDENTIFIER_INDEX && isEUFund && val . value . includes ( EU_PROJECT_PREFIX ) ) {
124+ // Show EU identifier input field
130125 ( this . get ( EU_IDENTIFIER_INDEX ) as DsDynamicInputModel ) . hidden = false ;
131- } else {
132- ( this . get ( EU_IDENTIFIER_INDEX ) as DsDynamicInputModel ) . hidden = true ;
133126 }
134127 }
135128 } else if ( hasValue ( ( this . get ( index ) as DsDynamicInputModel ) ) ) {
You can’t perform that action at this time.
0 commit comments