Skip to content

Commit

Permalink
fix: following rebase
Browse files Browse the repository at this point in the history
Fix imports, double declarations...
  • Loading branch information
Maxime Vergez committed Apr 17, 2023
1 parent 58429ee commit f948107
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
7 changes: 0 additions & 7 deletions backend/gn_module_monitoring/routes/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ def get_site_by_id(id_base_site):
schema = MonitoringSitesSchema()
return schema.dump(site)

@blueprint.route("/sites/<int:id_base_site>", methods=["GET"])
def get_site_by_id(id_base_site):
site = TMonitoringSites.query.get_or_404(id_base_site)
schema = MonitoringSitesSchema()
return schema.dump(site)


@blueprint.route("/sites/geometries", methods=["GET"])
def get_all_site_geometries():
params = MultiDict(request.args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class MonitoringSitesCreateComponent implements OnInit {
constructor(
private _formService: FormService,
private _formBuilder: FormBuilder,
private siteService: SitesService,
public siteService: SitesService,
private route: ActivatedRoute,
private _objService: ObjectService
) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ActivatedRoute } from '@angular/router';
import { endPoints } from '../../enum/endpoints';
import { ISitesGroup } from '../../interfaces/geom';
import { FormService } from '../../services/form.service';
import { SitesGroupService } from '../../services/api-geom.service';

@Component({
selector: 'monitoring-sitesgroups-create',
Expand All @@ -18,7 +19,7 @@ export class MonitoringSitesGroupsCreateComponent implements OnInit {
constructor(
private _formService: FormService,
private _formBuilder: FormBuilder,
private route: ActivatedRoute
public sitesGroupService: SitesGroupService
) {}

ngOnInit() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import { GeoJSONService } from '../../services/geojson.service';
import { ObjectService } from '../../services/object.service';
import { JsonData } from '../../types/jsondata';
import { SelectObject } from '../../interfaces/object';
import { Module } from '../../interfaces/module';
import { ConfigService } from '../../services/config.service';

@Component({
selector: 'monitoring-visits',
Expand All @@ -38,7 +40,8 @@ export class MonitoringVisitsComponent extends MonitoringGeomComponent implement
public geojsonService: GeoJSONService,
private router: Router,
private _Activatedroute: ActivatedRoute,
private _formBuilder: FormBuilder
private _formBuilder: FormBuilder,
private _configService: ConfigService
) {
super();
this.getAllItemsCallback = this.getVisits;
Expand Down
4 changes: 3 additions & 1 deletion frontend/app/components/select-btn/select-btn.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export class SelectButtonComponent {
}

displayFn(value: SelectObject) {
return value.label;
if (value) {
return value.label;
}
}
}

0 comments on commit f948107

Please sign in to comment.