-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Components with complex conditions create a variable with null name in getSchemaVariables #860
Comments
In form-js we filter for null values in the getSchemaVariables: https://github.com/bpmn-io/form-js/blob/develop/packages/form-js-viewer/src/util/index.js#L179 We added that filter because we had a similar error in the past. It could be that we do this check too early though. |
Issue is a few things. First, my safeguard against null variables doesn't work because Secondly, the null arises from the fact that we have this whole complex object structure stuff going on. Basically, {}.something is being treated as unnamed.something. The unnamed becomes null down the line. We should filter those out. Additionally we don't parse the internal scope of the object properly. This isn't a bug right now but will become one if we ever use a complex condition like that which doesn't rely on variables bound to keys. So yeah, I'll fix things. Fixing the null situation is pretty trivial but I'll try and go for a full solution. |
Describe the Bug
Components with complex conditions create a variable with null name in getSchemaVariables.
The conditions must use a context in order to cause that behavior, like
Steps to Reproduce
null
Expected Behavior
null
entry in getSchemaVariablesnull
valuesnull
sEnvironment
Form Editor in Web Modeler SaaS as of Oct 21 2023
The text was updated successfully, but these errors were encountered: