[angular-16-irish-monitor | DONE | CHANGED] Import indicators: allow for stakeholder type country to not having parameters for the current stakeholder

This commit is contained in:
argirok 2023-12-14 13:57:39 +02:00
parent 837e121684
commit 6b062dc2fb
1 changed files with 1 additions and 1 deletions

View File

@ -1298,7 +1298,7 @@ export class IndicatorsComponent extends IndicatorStakeholderBaseComponent imple
pos: 'bottom-right' pos: 'bottom-right'
}); });
} }
if (noValidParams > 0) { if (noValidParams > 0 && !(this.stakeholder.type == 'country')) {
let noValidMessage = "Some indicators couldn't be generated properly. Please make sure chart data is for the current stakeholder."; let noValidMessage = "Some indicators couldn't be generated properly. Please make sure chart data is for the current stakeholder.";
if (this.stakeholder.defaultId == null) { if (this.stakeholder.defaultId == null) {
noValidMessage = "Some indicators couldn't be generated properly. Stakeholders based on this profile may not inherit the data correctly."; noValidMessage = "Some indicators couldn't be generated properly. Stakeholders based on this profile may not inherit the data correctly.";