antvis / XFlow

React component for building interactive diagrams.
https://x6.antv.antgroup.com/xflow/guide/introduction
MIT License
584 stars 239 forks source link

动态创建边时不指定 id,更新时找不到边导致更新失败 #451

Closed baizn closed 8 months ago

baizn commented 8 months ago

Describe the bug

动态创建边时不指定 id,更新时找不到对应的边

Your Example Website or App

Steps to Reproduce the Bug or Issue

  1. 动态添加边,不指定 id
  2. 使用 updateEdge 更新添加的这条边

Expected behavior

能正常更新

Screenshots or Videos

No response

Platform

Additional context

No response

xflow-bot[bot] commented 8 months ago

👋 @baizn

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

NewByVector commented 8 months ago

更新到 2.0.4.