Files
enm-cli/lib/components/TopologyBrowser/commands/setIdByCommand.js
Vyacheslav.Sviridov 1fb7a6f81b first commit
2022-05-13 18:13:36 +06:00

11 lines
260 B
JavaScript

function setIdByCommand(command) {
const nextChild = this.childrens.filter(child => `${child.moType}=${child.moName}` === command)[0]
if (nextChild) {
this.nextPoId = nextChild.poId
return true
}
return false
}
module.exports = setIdByCommand