Skip to content

Commit 7877bb7

Browse files
committed
Error options handled.
1 parent 15344d7 commit 7877bb7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/fields/core/fieldSelect.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,27 @@
2424
items() {
2525
let values = this.schema.values;
2626
if (typeof(values) == "function") {
27-
return this.dataSorting(values.apply(this, [this.model, this.schema]));
27+
return this.groupValues(values.apply(this, [this.model, this.schema]));
2828
} else
29-
return this.dataSorting(values);
29+
return this.groupValues(values);
3030
}
3131
},
3232
3333
methods: {
3434
35-
dataSorting(values){
35+
groupValues(values){
3636
let array = [];
3737
let arrayElement = {};
3838
3939
values.forEach((item) => {
4040
4141
arrayElement = null;
4242
43-
if(item.group){
43+
if(item.group && isObject(item)){
4444
// There is in a group.
4545
4646
// Find element with this group.
47-
arrayElement = find(array, i => {return i.group == item.group});
47+
arrayElement = find(array, i => i.group == item.group);
4848
4949
if(arrayElement){
5050
// There is such a group.

0 commit comments

Comments
 (0)