Fix troubleshoot URL lookup (#7978)

This commit is contained in:
Charles Gagnon
2019-10-24 10:14:39 -07:00
committed by GitHub
parent 34fe2b44cc
commit cef60f3ae5

View File

@@ -99,7 +99,8 @@ export class BdcDashboardModel {
* troubleshoot notebook if the service name is unknown.
* @param service The service name to get the troubleshoot notebook URL for
*/
export function getTroubleshootNotebookUrl(service: string): string {
export function getTroubleshootNotebookUrl(service?: string): string {
service = service || '';
switch (service.toLowerCase()) {
case Service.sql:
return 'troubleshooters/tsg101-troubleshoot-sql-server';