diff --git a/src/app/data/service-object/service-object.component.ts b/src/app/data/service-object/service-object.component.ts index f378b9b..50c2053 100644 --- a/src/app/data/service-object/service-object.component.ts +++ b/src/app/data/service-object/service-object.component.ts @@ -164,7 +164,7 @@ export class ServiceObjectComponent { private onCellValueChanged($event) { if ($event.oldValue !== $event.newValue) { let data = JSON.stringify($event.data); - let id = $event.data.busStopId; + let id = $event.data.serviceObjectId; let result = null; if (id) { this.isLoading = true; @@ -175,8 +175,8 @@ export class ServiceObjectComponent { return ; } this.isLoading = true; - result = this.service.create(data).then((busStop) => { - this.rowData[$event.node.rowIndex] = busStop; + result = this.service.create(data).then((serviceObject) => { + this.rowData[$event.node.rowIndex] = serviceObject; this.gridOptions.api.setDatasource(this.setRowData(this.rowData)); this.gridOptions.api.refreshVirtualPageCache(); this.isLoading = false; @@ -191,7 +191,7 @@ export class ServiceObjectComponent { return ; } rows.forEach(element => { - let id = element.data.busStopId; + let id = element.data.serviceObjectId; if (id) { this.isLoading = true; this.service.delete(id).then(() => this.isLoading = false); @@ -273,3 +273,4 @@ export class ServiceObjectComponent { console.log('onColumnEvent: ' + $event); } } +ServiceObject \ No newline at end of file -- libgit2 0.21.4