File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments