mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
test fix
This commit is contained in:
parent
b41c81f4a2
commit
c86e23351c
@ -32,7 +32,7 @@ export class ObjectDataTableAdapter implements DataTableAdapter {
|
|||||||
private _rows: DataRow[];
|
private _rows: DataRow[];
|
||||||
private _columns: DataColumn[];
|
private _columns: DataColumn[];
|
||||||
|
|
||||||
static generatechema(rowToExaminate: any) {
|
static generateSchema(rowToExaminate: any) {
|
||||||
let schema = [];
|
let schema = [];
|
||||||
|
|
||||||
if (typeof rowToExaminate === 'object') {
|
if (typeof rowToExaminate === 'object') {
|
||||||
|
@ -67,6 +67,7 @@
|
|||||||
"karma-jasmine-html-reporter": "^0.2.0",
|
"karma-jasmine-html-reporter": "^0.2.0",
|
||||||
"karma-mocha-reporter": "^2.0.3",
|
"karma-mocha-reporter": "^2.0.3",
|
||||||
"license-check": "^1.0.4",
|
"license-check": "^1.0.4",
|
||||||
|
"material-design-lite": "^1.1.3",
|
||||||
"remap-istanbul": "^0.6.3",
|
"remap-istanbul": "^0.6.3",
|
||||||
"rimraf": "2.5.2",
|
"rimraf": "2.5.2",
|
||||||
"traceur": "^0.0.91",
|
"traceur": "^0.0.91",
|
||||||
@ -75,10 +76,6 @@
|
|||||||
"typings": "^1.0.4",
|
"typings": "^1.0.4",
|
||||||
"wsrv": "0.1.3"
|
"wsrv": "0.1.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
|
||||||
"material-design-icons": "^2.2.3",
|
|
||||||
"material-design-lite": "^1.1.3"
|
|
||||||
},
|
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"webscript",
|
"webscript",
|
||||||
"alfresco-component"
|
"alfresco-component"
|
||||||
|
@ -163,7 +163,7 @@ export class WebscriptComponent {
|
|||||||
let datatableShow = true;
|
let datatableShow = true;
|
||||||
try {
|
try {
|
||||||
if (!data.schema) {
|
if (!data.schema) {
|
||||||
data.schema = ObjectDataTableAdapter.generatechema(data.data[0]);
|
data.schema = ObjectDataTableAdapter.generateSchema(data.data[0]);
|
||||||
}
|
}
|
||||||
if (data.schema && data.schema.length > 0) {
|
if (data.schema && data.schema.length > 0) {
|
||||||
this.data = new ObjectDataTableAdapter(data.data, data.schema);
|
this.data = new ObjectDataTableAdapter(data.data, data.schema);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user