From bd63189ff04189651610ea072c32131084e5a7b1 Mon Sep 17 00:00:00 2001 From: fsimonjetz Date: Wed, 31 Jul 2024 09:11:29 +0000 Subject: [PATCH] use showMeter class attribute --- src/transliteration/ui/LineAccumulator.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/transliteration/ui/LineAccumulator.tsx b/src/transliteration/ui/LineAccumulator.tsx index e407017cc..ae9969278 100644 --- a/src/transliteration/ui/LineAccumulator.tsx +++ b/src/transliteration/ui/LineAccumulator.tsx @@ -94,7 +94,6 @@ export class LineAccumulator { pushToken( token: Token, index: number, - showMeter = false, showIpa = false, phoneticProps?: PhoneticProps, bemModifiers: string[] = [] @@ -116,7 +115,7 @@ export class LineAccumulator { token={token} bemModifiers={[...this.bemModifiers, ...bemModifiers]} Wrapper={this.inGloss && !isEnclosure(token) ? GlossWrapper : undefined} - showMeter={showMeter} + showMeter={this.showMeter} showIpa={showIpa} phoneticProps={phoneticProps} /> @@ -162,14 +161,7 @@ export class LineAccumulator { case 'Column': throw new Error('Unexpected column token.') default: - this.pushToken( - token, - index, - this.showMeter, - showIpa, - phoneticProps, - bemModifiers - ) + this.pushToken(token, index, showIpa, phoneticProps, bemModifiers) this.pushLemma(token.uniqueLemma) this.isFirstWord = false }