zoneLocation order
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-02-18 13:39:48 +01:00
parent 813d7368f3
commit 75053618a2
2 changed files with 1 additions and 2 deletions

View File

@ -67,7 +67,7 @@ export default class Treeview extends Component {
} }
item.childs = newData.sort((a, b) => { item.childs = newData.sort((a, b) => {
let priority = b.isIncluded - a.isIncluded; let priority = (b.isIncluded - a.isIncluded) - 1;
if (b.name > a.name) if (b.name > a.name)
priority++; priority++;

View File

@ -125,7 +125,6 @@ module.exports = Self => {
return priority; return priority;
}); });
console.log(sortedLeaves);
const leaves = Object.assign([], sortedLeaves); const leaves = Object.assign([], sortedLeaves);
nestLeaves(leaves); nestLeaves(leaves);