X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fhelpers%2FTechnique.js;h=7388ccb97bb5c3d7cb8816277a4e340235eef0f8;hb=4e24f36eb5d6907697c106ca15c2c405728d78a8;hp=f3daae7d1dfd53453dd1166edaa639f27dcf167d;hpb=9c8e6581de9599f34d231a141134af015cb28be5;p=alttp.git diff --git a/resources/js/helpers/Technique.js b/resources/js/helpers/Technique.js index f3daae7..7388ccb 100644 --- a/resources/js/helpers/Technique.js +++ b/resources/js/helpers/Technique.js @@ -38,6 +38,7 @@ export const getMatchedLocale = (tech, lang) => { }; export const getTranslation = (tech, prop, lang) => { + if (!tech) return ''; const direct = tech.translations.find(t => t.locale === lang); if (direct) { return direct[prop];