File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ function renderNameLink (vm) {
70
70
if ( isPrimitive ( vm . config . nameLink ) ) {
71
71
el . setAttribute ( 'href' , nameLink )
72
72
} else if ( typeof nameLink === 'object' ) {
73
- const match = Object . keys ( nameLink ) . find ( key => path . indexOf ( key ) > - 1 )
73
+ const match = Object . keys ( nameLink ) . filter ( key => path . indexOf ( key ) > - 1 ) [ 0 ]
74
74
75
75
el . setAttribute ( 'href' , nameLink [ match ] )
76
76
}
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ function updatePlaceholder (text, path) {
124
124
if ( typeof text === 'string' ) {
125
125
$input . placeholder = text
126
126
} else {
127
- const match = Object . keys ( text ) . find ( key => path . indexOf ( key ) > - 1 )
127
+ const match = Object . keys ( text ) . filter ( key => path . indexOf ( key ) > - 1 ) [ 0 ]
128
128
$input . placeholder = text [ match ]
129
129
}
130
130
}
@@ -133,7 +133,7 @@ function updateNoData (text, path) {
133
133
if ( typeof text === 'string' ) {
134
134
NO_DATA_TEXT = text
135
135
} else {
136
- const match = Object . keys ( text ) . find ( key => path . indexOf ( key ) > - 1 )
136
+ const match = Object . keys ( text ) . filter ( key => path . indexOf ( key ) > - 1 ) [ 0 ]
137
137
NO_DATA_TEXT = text [ match ]
138
138
}
139
139
}
You can’t perform that action at this time.
0 commit comments