Skip to content

Commit

Permalink
feat: update site with good properties
Browse files Browse the repository at this point in the history
Change types_site object to array of ids
Remove extra key "dataComplement" to assign config

Reviewed-by:andriac
[Refs_ticket]: #5 , #6
  • Loading branch information
andriacap committed Apr 19, 2023
1 parent 3a0c46e commit 77d1c56
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,14 @@ export class MonitoringVisitsComponent extends MonitoringGeomComponent implement
}
}
for(var k in this.site.data) this.site[k]=this.site.data[k];
Object.assign(this.site['dataComplement'].dataComplement, this.config);
this.site["types_site"] = this.config.types_site
Object.assign(this.site['dataComplement'], this.config);

this._formService.changeDataSub(this.site,
this.objParent.objectType,
this.objParent.endPoint);
}

// removeLastPart(url: string): string {
// return url.slice(0, url.lastIndexOf('/'));
// }

onObjChanged($event) {
this.initSiteVisit();
}
Expand Down

0 comments on commit 77d1c56

Please sign in to comment.