Commit b637b1e7 authored by MARCO Jonathan's avatar MARCO Jonathan
Browse files

馃悰 Fix a array empty in translation method

Fix VUE-FORMBUILDER-G7
parent aab529f1
Pipeline #72551 passed with stage
in 19 seconds
......@@ -44,8 +44,7 @@ export const messagesGetter: GetterTree<FormState, RootState> = {
prop: LocaleAttributes,
) => string => {
return (field, locale, prop): string => {
const message = state.messages.locales[locale][field] as Locale;
return message[prop] || '';
return (state.messages.locales[locale][field] as Locale)?.[prop] || '';
};
},
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment