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

fix: fix some issues #391

Merged
merged 2 commits into from
Dec 15, 2022
Merged

fix: fix some issues #391

merged 2 commits into from
Dec 15, 2022

Conversation

hetao92
Copy link
Contributor

@hetao92 hetao92 commented Dec 14, 2022

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Description:

How do you solve it?

Special notes for your reviewer, ex. impact of this fix, design document, etc:

const nodes = this.editor.graph.node.nodes;
const lines = this.editor.graph.line.lines;
const _nodes = Object.values(nodes).filter(i => i.data.invalid === true);
const _lines = Object.values(lines).filter(i => i.data.invalid === true && Object.keys(nodes).includes(i.data.from) && Object.keys(nodes).includes(i.data.to));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const _lines = Object.values(lines).filter(i => !!i.data.invalid && [i.data.from, i.data.to].every(id => id in nodes));

mod: code review

mod: code review
Copy link
Contributor

@huaxiabuluo huaxiabuluo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@huaxiabuluo huaxiabuluo merged commit 9667fb2 into vesoft-inc:master Dec 15, 2022
@hetao92 hetao92 deleted the hetao-fix branch December 15, 2022 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants