diff --git a/public/pages/utils/helpers.js b/public/pages/utils/helpers.js index 04ec75574..4acc59d10 100644 --- a/public/pages/utils/helpers.js +++ b/public/pages/utils/helpers.js @@ -42,7 +42,7 @@ export function parseQueryStringAndGetDataSource(queryString) { const pair = param.split('='); params[pair[0]] = pair[1]; } - return params.hasOwnProperty('dataSourceId') ? params['dataSourceId'] : undefined; + return params.hasOwnProperty('dataSourceId') ? params['dataSourceId'] || '' : undefined; } export function constructUrlFromDataSource(url) {