Skip to content

Commit

Permalink
Merge pull request #1653 from ProcessMaker/bugfix/FOUR-17261
Browse files Browse the repository at this point in the history
FOUR-17261: When the calc has bypass activated, the content of the entire form is not displayed
  • Loading branch information
ryancooley authored Jul 24, 2024
2 parents 972b006 + cb0149a commit 6d8ab13
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/mixins/Json2Vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 6d8ab13

Please sign in to comment.