Fix wrong logic for highlighting Languages select
This commit is contained in:
parent
0a4aae51b7
commit
b6a64b66c7
|
@ -1364,7 +1364,7 @@ function Compose({
|
||||||
class={`toolbar-button ${
|
class={`toolbar-button ${
|
||||||
language !== prevLanguage.current ||
|
language !== prevLanguage.current ||
|
||||||
(autoDetectedLanguages?.length &&
|
(autoDetectedLanguages?.length &&
|
||||||
autoDetectedLanguages.includes(language))
|
!autoDetectedLanguages.includes(language))
|
||||||
? 'highlight'
|
? 'highlight'
|
||||||
: ''
|
: ''
|
||||||
}`}
|
}`}
|
||||||
|
|
Loading…
Reference in a new issue