File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ export class ProjectGuard implements CanActivate {
1919 }
2020
2121 getFromStoreOrApi ( ) : Observable < ProjectState > {
22- return combineLatest ( [ this . _projectQuery . all$ , this . _projectQuery . isLoading$ ] ) . pipe (
23- map ( ( [ state , loading ] ) => {
22+ return combineLatest ( [ this . _projectQuery . all$ , this . _projectQuery . isLoading$ ] ) . pipe (
23+ map ( ( [ state , loading ] ) => {
2424 if ( ! loading ) {
25- this . _projectService . getProject ( ) . subscribe ( ) ;
25+ this . _projectService . getProject ( ) ;
2626 }
2727 return state ;
2828 } ) ,
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ export class ProjectService {
2424 this . _store . setLoading ( isLoading ) ;
2525 }
2626
27- getProject ( ) : Subscription {
27+ getProject ( ) {
2828 this . setLoading ( true ) ;
29- return this . _http
29+ this . _http
3030 . get < JProject > ( `${ this . baseUrl } /project` )
3131 . pipe (
3232 map ( ( project ) => {
You can’t perform that action at this time.
0 commit comments