Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
importV1DDL(ddl: DDL1.DDLSchema, baseUrl?: string, wuid?: string) {
this._ddlv1.json(ddl);
const ddl2 = upgrade(ddl, baseUrl, wuid);
this._ddlv2.json(ddl2);
this._tabDDL
.addWidget(this._ddlv1, "v1")
.addWidget(this._ddlv2, "v1->v2")
;
this.restore({ ddl: ddl2 });
}
result.fetchRows().then(async (response: object[]) => {
const ddl = JSON.parse(response[0][this._url.param("ResultName")]);
this._ddlv1.json(ddl);
this._ddlv2_upgraded.json(upgrade(ddl));
this._elementContainer.importV1DDL(fullUrl, ddl);
this._dashboard.lazyRender();
await this._elementContainer.refresh();
this._ddlv2.json(this._elementContainer.ddl());
});
} else if (this._url.param("QueryID")) {