Skip to content

Commit

Permalink
Error options handled.
Browse files Browse the repository at this point in the history
  • Loading branch information
hansi90 committed Oct 16, 2017
1 parent 15344d7 commit 7877bb7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/fields/core/fieldSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,27 @@
items() {
let values = this.schema.values;
if (typeof(values) == "function") {
return this.dataSorting(values.apply(this, [this.model, this.schema]));
return this.groupValues(values.apply(this, [this.model, this.schema]));
} else
return this.dataSorting(values);
return this.groupValues(values);
}
},
methods: {
dataSorting(values){
groupValues(values){
let array = [];
let arrayElement = {};
values.forEach((item) => {
arrayElement = null;
if(item.group){
if(item.group && isObject(item)){
// There is in a group.
// Find element with this group.
arrayElement = find(array, i => {return i.group == item.group});
arrayElement = find(array, i => i.group == item.group);
if(arrayElement){
// There is such a group.
Expand Down

0 comments on commit 7877bb7

Please sign in to comment.