antvis/G6

V5.0.4 history插件的util的alignFields会导致深层嵌套的false值被改写成undefined #6149

hh1412 posted onGitHub

Describe the bug / 问题描述

https://codesandbox.io/p/devbox/condescending-elbakyan-nyn9rc image 经过一个平移操作后 bbb由false变成了undefined 查看代码 是因为alignFields函数的判断else if(!targetObject[key]) 导致的 image

https://codesandbox.io/p/devbox/condescending-elbakyan-nyn9rc

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

https://codesandbox.io/p/devbox/condescending-elbakyan-nyn9rc image 经过一个平移操作后 bbb由false变成了undefined

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

Windows

Browser / 浏览器

Chrome

Additional context / 补充说明

No response


Fund this Issue

$0.00
Funded

Pull requests