The Wayback Machine - https://web.archive.org/web/20210125141331/https://github.com/projectstorm/react-diagrams/pull/384
Skip to content
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

Conversation

@DanieLazarLDAPPS
Copy link
Contributor

@DanieLazarLDAPPS DanieLazarLDAPPS commented Aug 7, 2019

Checklist

  • The code has been run through pretty yarn run pretty
  • The tests pass on CircleCI
  • You have referenced the issue(s) or other PR(s) this fixes/relates-to
  • The PR Template has been filled out (see below)
  • Had a beer because you are awesome

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 :])

LOL

@@ -275,6 +275,9 @@ export class DiagramEngine extends BaseEntity<DiagramEngineListener> {
}

getNodeElement(node: NodeModel): Element {
if (!this.canvas) {

This comment has been minimized.

@DanieLazarLDAPPS

DanieLazarLDAPPS Aug 7, 2019
Author Contributor

When the node is under the bottom of the screen canvas is null.

Copy link
Contributor

@frank-martinez-27 frank-martinez-27 left a comment

LGTM

@dylanvorster
Copy link
Contributor

@dylanvorster dylanvorster commented Aug 12, 2019

Are you able to port these fixes to the new 6.0 version?

@DanieLazarLDAPPS
Copy link
Contributor Author

@DanieLazarLDAPPS DanieLazarLDAPPS commented Aug 13, 2019

Yeap I will

@DanieLazarLDAPPS DanieLazarLDAPPS force-pushed the DanieLazarLDAPPS:bugfix/#277-smart-route-canvas-null-check branch from a978a9a to 264c74e Aug 13, 2019
@DanieLazarLDAPPS
Copy link
Contributor Author

@DanieLazarLDAPPS DanieLazarLDAPPS commented Aug 13, 2019

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.
smartroutebug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants