import {Injectable} from '@angular/core';
import {HttpClient} from "@angular/common/http";
import {Observable} from "rxjs/index";
import {IPage} from "../model/page.model";

@Injectable()
export class ApplicationDashboardService {

  constructor(private http: HttpClient) {
  }

  getPagesForJobGroup(applicationId: number): Observable<IPage[]> {
    return this.http.get<IPage[]>("/applicationDashboard/getPagesForApplication", {
      params: {
        applicationId: applicationId ? applicationId.toString() : ""
      }
    });
  }

}

import {Injectable} from '@angular/core';
import {HttpClient} from "@angular/common/http";
import {Observable} from "rxjs/index";
import {IPage} from "../model/page.model";

@Injectable()
export class ApplicationDashboardService {

  constructor(private http: HttpClient) {
  }

  getPagesForJobGroup(applicationId: number): Observable<IPage[]> {
    return this.http.get<IPage[]>("/applicationDashboard/getPagesForApplication", {
      params: {
        applicationId: applicationId.toString()
      }
    });
  }

}

--- 
+++ 
@@ -12,7 +12,7 @@
   getPagesForJobGroup(applicationId: number): Observable<IPage[]> {
     return this.http.get<IPage[]>("/applicationDashboard/getPagesForApplication", {
       params: {
-        applicationId: applicationId.toString()
+        applicationId: applicationId ? applicationId.toString() : ""
       }
     });
   }
[IT-2250] Handle empty job group id in rest call for pages
