We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eed8083 commit 018c019Copy full SHA for 018c019
resources/assets/component.js
@@ -198,6 +198,7 @@ class ComponentLine {
198
var tbody = document.createElement('tbody');
199
var object = this;
200
var columns = this.COLUMNS;
201
+ if(Array.isArray(this.DATA) == false)return;
202
this.DATA.forEach(function (value, key) {
203
let tr = document.createElement('tr');
204
tr.setAttribute('sortable-item','sortable-item');
@@ -350,7 +351,7 @@ class ComponentLine {
350
351
352
sortable(){
353
- this.SORTABLE = new ComponentSortable(this.TBODY_DOM,function (sort) {
354
+ new ComponentSortable(this.TBODY_DOM,function (sort) {
355
let data = [];
356
sort.forEach(function (k) {
357
data.push(object.DATA[k]);
0 commit comments