-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Przemek
committed
Jul 10, 2024
1 parent
1667201
commit 304cdf9
Showing
1 changed file
with
1 addition
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ const useAdditionalField = () => { | |
|
||
const additionalFieldTranslations = useCallback( | ||
(fieldMeta: API.Metadata) => { | ||
// @ts-ignore | ||
Check warning on line 10 in src/hooks/useAdditionalFieldsTranslations.tsx GitHub Actions / eslint (20.x)
|
||
const translations = fieldMeta?.extra?.[0]?.translations; | ||
if (translations && typeof translations === "object") { | ||
return translations[i18n.language]; | ||
|