antvis/G6
The issue has been closed
V5.0.4 history插件的util的alignFields会导致深层嵌套的false值被改写成undefined #6149
hh1412 posted onGitHub
Describe the bug / 问题描述
https://codesandbox.io/p/devbox/condescending-elbakyan-nyn9rc
经过一个平移操作后 bbb由false变成了undefined
查看代码 是因为alignFields函数的判断else if(!targetObject[key]) 导致的
Reproduction link / 重现链接
https://codesandbox.io/p/devbox/condescending-elbakyan-nyn9rc
Steps to Reproduce the Bug or Issue / 重现步骤
https://codesandbox.io/p/devbox/condescending-elbakyan-nyn9rc
经过一个平移操作后 bbb由false变成了undefined
G6 Version / G6 版本
🆕 5.x
Operating System / 操作系统
Windows
Browser / 浏览器
Chrome
Additional context / 补充说明
No response