Prechádzať zdrojové kódy

check url is not null

Stephen Wong 1 rok pred
rodič
commit
44c768af50

+ 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 = {};