Browse Source
Merge pull request #6725 from vvlladd28/bug/validate-datasources/dataKey-label
[3.4] UI: Improvement function validateDatasources
pull/6782/head
Igor Kulikov
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
ui-ngx/src/app/core/services/utils.service.ts
|
|
|
@ -284,6 +284,11 @@ export class UtilsService { |
|
|
|
if (!datasource.dataKeys) { |
|
|
|
datasource.dataKeys = []; |
|
|
|
} |
|
|
|
datasource.dataKeys.forEach(dataKey => { |
|
|
|
if (isUndefined(dataKey.label)) { |
|
|
|
dataKey.label = dataKey.name; |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
return datasources; |
|
|
|
} |
|
|
|
|