diff --git a/src/mixins/Json2Vue.js b/src/mixins/Json2Vue.js index d6fbb17c3..44b3663bc 100644 --- a/src/mixins/Json2Vue.js +++ b/src/mixins/Json2Vue.js @@ -236,9 +236,11 @@ export default { return name && typeof name === 'string' && name.match(/^[a-zA-Z_][0-9a-zA-Z_.]*$/); }, isComputedVariable(name, definition) { - return definition.computed && definition.computed.some(computed => { - // Check if the first part of an element's name (up to the first `.`) - // matches the name of a computed property. + return definition?.computed?.some(computed => { + // add byPass computed property validation + if (computed?.byPass) return false; + // Check if the first part of an element'ßs name (up to the first `.`) + // matches the name of a computed propertåy. const regex = new RegExp(`^${computed.property}(\\.|$)`, 'i'); return regex.test(name); });