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
parent
commit
36158d9256
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      ui-ngx/src/app/core/services/utils.service.ts

5
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;
}

Loading…
Cancel
Save