-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
issue-277 few null checks to avoid crash when node went under bottom … #384
base: master
Are you sure you want to change the base?
issue-277 few null checks to avoid crash when node went under bottom … #384
Conversation
src/DiagramEngine.ts
Outdated
@@ -275,6 +275,9 @@ export class DiagramEngine extends BaseEntity<DiagramEngineListener> { | |||
} | |||
|
|||
getNodeElement(node: NodeModel): Element { | |||
if (!this.canvas) { |
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.
When the node is under the bottom of the screen canvas is null.
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.
LGTM
Are you able to port these fixes to the new 6.0 version? |
Yeap I will |
a978a9a
to
264c74e
Compare
Hi @dylanvorster, well I migrated fixes to 6 version but unfortunately, it won't help. Please check following gif how to reproduce this error. The problem is in PathFinderLinkWidget. |
Checklist
yarn run pretty
What?
Issue with smart routing
Why?
Because of this issue
#277
How?
I just went thru errors reported by the console and I added few null checks and it fixed that issue. But I have no idea if there will be some deeper dependency so please check it out. Thank you
Feel-Good "programming lol" image:
(Add your own one below :])