Skip to content

Commit

Permalink
minor updatation
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro committed Jun 12, 2024
1 parent dc3e86a commit ce8eb11
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,13 @@ export const generateTitle = (chart, params) => {

let parentField = _.get(params, 'aggs.group.field');

if (parentField.startsWith('{"scheme')) {
const obj = JSON.parse(parentField);

parentField = getCustomVocabulariesData().find(
(value) => value.qcode.scheme == obj.scheme)?.name;
}

const parentName = chart.getSourceName(parentField);

if (_.get(params, 'aggs.subgroup.field.length', 0) > 0) {
Expand Down

0 comments on commit ce8eb11

Please sign in to comment.