Commit f9dffdd1 authored by 杨奕's avatar 杨奕 Committed by GitHub

Tree: fix markNodeData error when data is falsy (#11376)

parent c9ea4161
export const NODE_KEY = '$treeNodeId';
export const markNodeData = function(node, data) {
if (data[NODE_KEY]) return;
if (!data || data[NODE_KEY]) return;
Object.defineProperty(data, NODE_KEY, {
value: node.id,
enumerable: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment