Bug Fixed : No more than one phase at Initial Definition

This commit is contained in:
Luis Fernando Molina committed 2019-06-26 15:30:06 +02:00
1 parent f8319dff6d
commit 1b6e4a5daf
1 file changed
+5
@@ -504,6 +504,11 @@ function newPartsFromNodes () {
}
let phaseParent = parentNode
let m = phaseParent.phases.length
if (phaseParent.payload.parentNode !== undefined) {
if (phaseParent.payload.parentNode.type === 'Initial Definition' && m > 0) { return }
}
let phase = {
name: 'New Phase',
formula: {