mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
prettier: ran on all files again, sorry. now settings are defined in package.json
This commit is contained in:
@@ -49,11 +49,7 @@ export class LinkSrv {
|
||||
}
|
||||
|
||||
appendToQueryString(url, stringToAppend) {
|
||||
if (
|
||||
!_.isUndefined(stringToAppend) &&
|
||||
stringToAppend !== null &&
|
||||
stringToAppend !== ''
|
||||
) {
|
||||
if (!_.isUndefined(stringToAppend) && stringToAppend !== null && stringToAppend !== '') {
|
||||
var pos = url.indexOf('?');
|
||||
if (pos !== -1) {
|
||||
if (url.length - pos > 1) {
|
||||
@@ -106,10 +102,7 @@ export class LinkSrv {
|
||||
info.href = this.addParamsToUrl(info.href, params);
|
||||
|
||||
if (link.params) {
|
||||
info.href = this.appendToQueryString(
|
||||
info.href,
|
||||
this.templateSrv.replace(link.params, scopedVars)
|
||||
);
|
||||
info.href = this.appendToQueryString(info.href, this.templateSrv.replace(link.params, scopedVars));
|
||||
}
|
||||
|
||||
return info;
|
||||
|
||||
Reference in New Issue
Block a user