mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
Tree: fix registerNode error when nodeKey is 0
This commit is contained in:
@@ -132,7 +132,7 @@ export default class TreeStore {
|
||||
if (!key || !node || !node.data) return;
|
||||
|
||||
const nodeKey = node.key;
|
||||
if (nodeKey) this.nodesMap[node.key] = node;
|
||||
if (nodeKey !== undefined) this.nodesMap[node.key] = node;
|
||||
}
|
||||
|
||||
deregisterNode(node) {
|
||||
|
||||
Reference in New Issue
Block a user