Skip to content

Commit

Permalink
fix: rename getFormatVersion function to getFormat (#401)
Browse files Browse the repository at this point in the history
because it returns the format and not the version

Co-authored-by: Konstantin <konstantin.klein+github@hochfrequenz.de>
  • Loading branch information
hf-kklein and Konstantin authored Jan 26, 2025
1 parent c380c38 commit e3eca84
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ export class AhbTableComponent {

generateBedingungsbaumDeepLink(expression: string): string {
const encodedExpression = encodeURIComponent(expression);
return `${environment.bedingungsbaumBaseUrl}/tree/?format=${this.formatVersion()}&format_version=${this.getFormatVersion(this.pruefi())}&expression=${encodedExpression}`;
return `${environment.bedingungsbaumBaseUrl}/tree/?format=${this.getFormat(this.pruefi())}&format_version=${this.formatVersion()}&expression=${encodedExpression}`;
}

private getFormatVersion(pruefi: string): string {
private getFormat(pruefi: string): string {
const mapping: { [key: string]: string } = {
'99': 'APERAK',
'29': 'COMDIS',
Expand Down

0 comments on commit e3eca84

Please sign in to comment.