-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Problems with references after copying default sequence flow elements #1935
Comments
The behavior you're observing is correct. We're not talking about a simple object here. Every model element is an instance of Base. When using |
I found this problem exactly when I was using the example you mentioned! In the model it's using defineProperty: https://github.com/bpmn-io/moddle/blob/master/lib/properties.js#L51, |
Closed by ca65cde. |
Describe the Bug
After setting the sequence flow to be the default sequence flow and using the shortcut key to copy the element, you will find that the element business object default property becomes enumerable and there is a circular reference. Importing a diagram, or switching the sequence flow to the default sequence flow after a normal element's default property is not enumerable.
as shown below :
Steps to Reproduce
code example in stackblitz and run
Expected Behavior
When copied, the default properties of a business object should be no enumerable. This avoids unexpected problems, e.g. TypeError: Converting circular structure to JSON when using JSON.stringify.
Environment
The text was updated successfully, but these errors were encountered: