mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Tweaked isRoot logic to follow the same pattern as the rest of the function
This commit is contained in:
parent
2c1fe14206
commit
6c321f810a
@ -73,7 +73,7 @@ export default ['$q', function($q){
|
||||
placeholder: true,
|
||||
isNew: true,
|
||||
edited: false,
|
||||
isRoot: _.get(params, 'parent.isStartNode') ? true : _.get(params, 'parent.source.isStartNode', false)
|
||||
isRoot: (params.betweenTwoNodes) ? _.get(params, 'parent.source.isStartNode', false) : _.get(params, 'parent.isStartNode', false)
|
||||
};
|
||||
|
||||
let parentNode = (params.betweenTwoNodes) ? this.searchTree({element: params.tree, matchingId: params.parent.source.id}) : this.searchTree({element: params.tree, matchingId: params.parent.id});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user