antvis/G6

[v5] create-edge will report an error when listening to onCreate when creating an edge #6430

j787701730 posted onGitHub

Describe the bug / 问题描述

{ type: 'create-edge', // trigger: 'click', enable: (event) => { console.log(event); return ['node'].includes(event.targetType); }, onCreate() { // isCreateEdgeRef.current = true; }, onFinish(e) {} }

报错信息如下: data.ts:49 Uncaught (in promise) TypeError: Cannot destructure property 'data' of 'data' as it is undefined. at cloneElementData (data.ts:49:17) at DataController.pushChange (data.ts:83:34) at data.ts:349:14 at Array.map (<anonymous>) at DataController.addEdgeData (data.ts:348:13) at _Graph.addEdgeData (graph.ts:706:24) at _CreateEdge.createEdge (create-edge.ts:178:11) at _CreateEdge.<anonymous> (create-edge.ts:123:12) at Generator.next (<anonymous>) at collapse-expand.ts:64:26

image

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

Windows

Browser / 浏览器

Edge

Additional context / 补充说明

No response


Please provide more information, or use the standard format, otherwise we will not process this issue. Reference document:


请提供更多信息,或者使用规范的格式,否则我们不会处理这个 issue。 参考文档:

posted by github-actions[bot] 5 months ago

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. | 由于该 issue 缺少关键信息且已闲置 7 天,现已自动关闭。如需重新打开此问题,请提供所缺失的信息。。

posted by github-actions[bot] 4 months ago

Fund this Issue

$0.00
Funded

Pull requests