We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd93aa7 commit 5247407Copy full SHA for 5247407
1 file changed
dashboard/components/AuthDialog.tsx
@@ -99,10 +99,12 @@ export async function createJwt(
99
'tenant_domains_mv',
100
]
101
102
+ const filter = tenant_id ? `tenant_id = '${tenant_id}'` : ''
103
+ const fixed_params = tenant_id ? { tenant_id } : {}
104
const datasources_scopes = datasources_resources.map(resource => ({
105
type: 'DATASOURCES:READ',
106
resource,
- filter: `tenant_id = '${tenant_id}'`,
107
+ filter,
108
}))
109
110
const payload = {
@@ -113,9 +115,7 @@ export async function createJwt(
113
115
...resources.map(resource => ({
114
116
type: 'PIPES:READ',
117
- fixed_params: {
- tenant_id: tenant_id,
118
- },
+ fixed_params,
119
})),
120
...datasources_scopes,
121
],
0 commit comments