-
Notifications
You must be signed in to change notification settings - Fork 197
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
feat(cloud): allow setting custom form key #592
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4f45d11
to
5b31cec
Compare
It was a small issue with the commands executed with the command stack -> fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For all test cases I miss a should react to external changes
(e.g. like undo
). This should hvae then also catched the bug I reported before.
id: 'formType', | ||
component: FormType, | ||
isEdited: isSelectEntryEdited | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You always push the two input components, and they then may return undefined if no applicable.
Would it not make more sense to check whether they are applicable already here?
E.g., have if (isCamundaForm(element, formHelper))
directly here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did this because I got an error when trying to do injector.invoke(FormHelper)
in the main component FormProps: unhandled error in event listener TypeError: Cannot read properties of null (reading 'invoke')
. Do you know why this might happen?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
injector
is not defined, that is what the error says.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I'm trying to do:
const injector = useService('injector');
const formHelper = injector.invoke(FormHelper);
Like I do in the other components, and only on the main one I get that error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you check-in a failing test case? I'm happy to have a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a test branch with these changes). More specifically:
const formHelper = injector.invoke(FormHelper); |
This causes a bunch of tests to fail because it throws the error I mentioned.
5b31cec
to
53b97be
Compare
e57a770
to
bce4b47
Compare
bce4b47
to
1e66811
Compare
I was able to figure out the issue with the injector and formHelper. Reopened for review (@MaxTru) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏
Related to camunda/camunda-modeler#2759