We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d40afb + 32e739e commit ff35608Copy full SHA for ff35608
src/pages/ResourceTree/index.js
@@ -689,7 +689,6 @@ class ResourceTree extends Component {
689
let sourceNode = info.dragNode;
690
let targetNode = info.node;
691
if (
692
- sourceNode.isLeaf === true &&
693
targetNode.isLeaf === false
694
) {
695
this.props.modifyHostPosition(
src/redux/reducers/HostDataReducer.js
@@ -22,7 +22,7 @@ let initialState = {
22
function delHostsByNodeName(nodeList = [], key = "") {
23
if (Object.keys(nodeList).length === 0 || nodeList.length === 0) {
24
// 空对象或者空串,直接返回
25
- return 0;
+ return null;
26
}
27
let index = nodeList.findIndex((node) => node.key === key);
28
if (index !== -1) {
0 commit comments