antvis / antvis/G6

[Bug]: g6图destroy报错model不存在

Open
#7,304 2 comments 0 reactions 0 assignees View on GitHub
question 💬
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

Image

Image

这里的model没有可选链,当graph在init的过程中调用clear或destroy会报错导致页面白屏,希望尽快修复

### Reproduction link / 复现链接

当graph在init的过程中调用clear或destroy

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

_No response_

### Version / 版本

Please select / 请选择

### OS / 操作系统

- [ ] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他

### Browser / 浏览器

- [ ] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is identified in the report. Start by reproducing a graph that calls clear or destroy during initialization, then trace the reported missing-model error; done means those calls no longer throw or leave the page blank during initialization.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.