Skip to content

Commit 018c019

Browse files
committed
1.6
1 parent eed8083 commit 018c019

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

resources/assets/component.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ class ComponentLine {
198198
var tbody = document.createElement('tbody');
199199
var object = this;
200200
var columns = this.COLUMNS;
201+
if(Array.isArray(this.DATA) == false)return;
201202
this.DATA.forEach(function (value, key) {
202203
let tr = document.createElement('tr');
203204
tr.setAttribute('sortable-item','sortable-item');
@@ -350,7 +351,7 @@ class ComponentLine {
350351

351352
sortable(){
352353
var object = this;
353-
this.SORTABLE = new ComponentSortable(this.TBODY_DOM,function (sort) {
354+
new ComponentSortable(this.TBODY_DOM,function (sort) {
354355
let data = [];
355356
sort.forEach(function (k) {
356357
data.push(object.DATA[k]);

0 commit comments

Comments
 (0)