Templating: Fix global variable "__org.id" (#23362)

* Fixed global variable __org.id value

* correct orgId value

* reverted the change as variables moved to new file
This commit is contained in:
Vikky Omkar
2020-04-09 11:30:07 +05:30
committed by GitHub
parent 02d303a595
commit bbfe628a32

View File

@@ -97,7 +97,7 @@ export const completeDashboardTemplating = (dashboard: DashboardModel): ThunkRes
templateSrv.setGlobalVariable('__org', {
value: {
name: contextSrv.user.orgName,
id: contextSrv.user.id,
id: contextSrv.user.orgId,
toString: function() {
return this.id;
},