Skip to content

Commit

Permalink
fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Jan 6, 2024
1 parent 8396e98 commit 0289b70
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ext/js/language/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,11 @@ export class Translator {
}

const {matchType} = options;

const databaseEntries = await this._database.findTermsBulk(uniqueDeinflectionTerms, enabledDictionaryMap, matchType);

for (const databaseEntry of databaseEntries) {
const entryDictionary = enabledDictionaryMap.get(databaseEntry.dictionary);
const partsOfSpeechFilter = entryDictionary?.partsOfSpeechFilter ?? true;
const entryDictionary = /** @type {import('translation').FindTermDictionary} */ (enabledDictionaryMap.get(databaseEntry.dictionary));
const partsOfSpeechFilter = entryDictionary.partsOfSpeechFilter;

const definitionRules = Deinflector.rulesToRuleFlags(databaseEntry.rules);
for (const deinflection of uniqueDeinflectionArrays[databaseEntry.index]) {
Expand Down

0 comments on commit 0289b70

Please sign in to comment.