]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/helpers/Technique.js
basic content editing
[alttp.git] / resources / js / helpers / Technique.js
index f3daae7d1dfd53453dd1166edaa639f27dcf167d..7388ccb97bb5c3d7cb8816277a4e340235eef0f8 100644 (file)
@@ -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];