[Fix][UI Next][V1.0.0-Beta] Fix console bug after deleting a node from the context menu. (#9932)

This commit is contained in:
Amy0104 2022-05-07 14:18:17 +08:00 committed by GitHub
parent cac3f780e5
commit 8215fa8e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ export function useTaskEdit(options: Options) {
process.postTaskCode === code || process.preTaskCode === code
)
})
cells.forEach((cell) => {
cells?.forEach((cell) => {
if (cell.isEdge()) {
const preTaskCode = cell.getSourceCellId()
const postTaskCode = cell.getTargetCellId()