[develop]: Remove topics from exported file in export indicators.

This commit is contained in:
Konstantinos Triantafyllou 2024-04-01 18:56:26 +03:00
parent b34f42326c
commit 828dfc0671
1 changed files with 2 additions and 1 deletions

View File

@ -1354,9 +1354,10 @@ export class IndicatorsComponent extends IndicatorStakeholderBaseComponent imple
let category = topic ? topic.categories[this.categoryIndex] : null;
let subCategory = category ? category.subCategories[subcategoryIndex] : null;
let json = {
stakeholder: this.stakeholder,
stakeholder: HelperFunctions.copy(this.stakeholder),
indicators: indicators
}
delete json.stakeholder.topics;
var jsonFileUrl = window.URL.createObjectURL(new Blob([JSON.stringify(json)], {type: 'application/json'}));
var a = window.document.createElement('a');
window.document.body.appendChild(a);