distint array and object
This commit is contained in:
parent
4012655671
commit
8819e6124f
@ -80,7 +80,11 @@ for (var i=0; i<listQuery.length; i++){
|
||||
}
|
||||
|
||||
instance.get("users", {withCredentials: true, params :param}).then(function(response){
|
||||
listData = response.data;
|
||||
var listData = response.data;
|
||||
if(!Array.isArray(listData)){
|
||||
var listData = []
|
||||
listData.push(response.data);
|
||||
}
|
||||
for (var i=0; i<listData.length; i++){
|
||||
var trTag = document.querySelector("#users tbody tr").cloneNode(true);
|
||||
if(i != 0){
|
||||
|
Loading…
x
Reference in New Issue
Block a user