mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
Don't send spellCheckLanguage request if the old value is the same as the new one
GitOrigin-RevId: 4ef34be7563ff707b6abd44dc8034293c88d2f72
This commit is contained in:
+4
-1
@@ -11,7 +11,10 @@ export default function useSetSpellCheckLanguage() {
|
||||
|
||||
const setSpellCheckLanguage = useCallback(
|
||||
(spellCheckLanguage: string) => {
|
||||
if (spellCheckLanguageScope) {
|
||||
if (
|
||||
spellCheckLanguageScope &&
|
||||
spellCheckLanguage !== spellCheckLanguageScope
|
||||
) {
|
||||
sendMB('setting-changed', {
|
||||
changedSetting: 'spellCheckLanguage',
|
||||
changedSettingVal: spellCheckLanguage,
|
||||
|
||||
Reference in New Issue
Block a user