Commit 32e08eb3 authored by Νίκος Κατσαούνος's avatar Νίκος Κατσαούνος
Browse files

fixed bug in perfecture-view

parent 89c80177
...@@ -85,16 +85,6 @@ import { ...@@ -85,16 +85,6 @@ import {
this.School$.next(x); this.School$.next(x);
console.log(x[0].id, "perfectureID"); console.log(x[0].id, "perfectureID");
this.perfecture = x[0].id; this.perfecture = x[0].id;
},
error => {
this.School$.next([{}]);
console.log("Error Getting School");
},
() => {
console.log("Getting School ");
this.SchoolPerPerfSub = this._hds.getSchoolPerPerfecture(this.perfecture).subscribe(data => { this.SchoolPerPerfSub = this._hds.getSchoolPerPerfecture(this.perfecture).subscribe(data => {
this.SchoolsPerPerf$.next(data); this.SchoolsPerPerf$.next(data);
}, },
...@@ -103,21 +93,13 @@ import { ...@@ -103,21 +93,13 @@ import {
console.log("Error Getting Schools"); console.log("Error Getting Schools");
}, },
() => console.log("Getting Schools")); () => console.log("Getting Schools"));
}
);
/*
this.SchoolPerPerfSub = this._hds.getSchoolPerPerfecture(this.perfecture).subscribe(data => {
this.SchoolsPerPerf$.next(data);
}, },
error => { error => {
this.SchoolsPerPerf$.next([{}]); this.School$.next([{}]);
console.log("Error Getting Schools"); console.log("Error Getting School");
}, },
() => console.log("Getting Schools")); () => console.log("Getting School "));
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment