mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-01 20:43:33 +00:00
general-section: Convert .filter(…)[0] to .find(…).
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -556,7 +556,7 @@ export default class GeneralSection extends BaseSection {
|
||||
}
|
||||
});
|
||||
|
||||
const configuredLanguages: string[] = ConfigUtil.getConfigItem('spellcheckerLanguages').map((code: string) => [...languagePairs].filter(pair => (pair[1] === code))[0][0]);
|
||||
const configuredLanguages: string[] = ConfigUtil.getConfigItem('spellcheckerLanguages').map((code: string) => [...languagePairs].find(pair => (pair[1] === code))[0]);
|
||||
tagify.addTags(configuredLanguages);
|
||||
|
||||
tagField.addEventListener('change', event => {
|
||||
|
||||
Reference in New Issue
Block a user