Browse Source

UI: Improvement function validateDatasources added validation for required label in dataKey setting

pull/6725/head
Vladyslav_Prykhodko 4 years ago
parent
commit
539390e6b5
  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