X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fhelpers%2FTechnique.js;h=7388ccb97bb5c3d7cb8816277a4e340235eef0f8;hb=7c6716036321ba09846785720e81459aad55a323;hp=f3daae7d1dfd53453dd1166edaa639f27dcf167d;hpb=9aca4f1a99af65dc988d2f66e122e25456a4efd9;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];