mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-26 17:52:59 +02:00
linter
This commit is contained in:
parent
9450386d57
commit
643ff6f998
@ -1,7 +1,6 @@
|
|||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
|
|
||||||
import { SUBCATEGORY_ORDER, SubcategoryId, ToolCategoryId, ToolRegistryEntry } from '../data/toolsTaxonomy';
|
import { SUBCATEGORY_ORDER, SubcategoryId, ToolCategoryId, ToolRegistryEntry } from '../data/toolsTaxonomy';
|
||||||
import { idToWords, normalizeForSearch } from '../utils/fuzzySearch';
|
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
type SubcategoryIdMap = {
|
type SubcategoryIdMap = {
|
||||||
|
@ -17,7 +17,6 @@ export const getTranslatedSynonyms = (t: TFunction, toolId: string): string[] =>
|
|||||||
.map((tag: string) => tag.trim())
|
.map((tag: string) => tag.trim())
|
||||||
.filter((tag: string) => tag.length > 0);
|
.filter((tag: string) => tag.length > 0);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.warn(`Failed to get translated synonyms for tool ${toolId}:`, error);
|
console.warn(`Failed to get translated synonyms for tool ${toolId}:`, error);
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user