소스 검색

check url is not null

Stephen Wong 1 년 전
부모
커밋
44c768af50
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/FisAppGraphQLAPI/ServiceProviderController.ts

+ 2 - 1
src/FisAppGraphQLAPI/ServiceProviderController.ts

@@ -41,7 +41,8 @@ export class ServiceProviderController {
 
         if (!checkServiceProvider) {
             return "No service provider found";
-        } else {
+        } else if (checkServiceProvider.url > "") { // is valid url 
+
             let sub = this.http.get(checkServiceProvider.url + query.path).subscribe(
                 x => {
                     let newResponse = {};