Files
enm-cli/lib/applications/TopologyBrowser/commands/setIdByCommand.js
Vyacheslav.Sviridov fc41ae955f first alpha
2022-06-09 20:52:09 +06:00

11 lines
265 B
JavaScript
Executable File

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