Default text for formula

This commit is contained in:
Luis Fernando Molina committed 2019-05-29 12:15:48 +02:00
1 parent 336c3b8d5b
commit efc445c3c9
2 files changed
+8 -2

No files matched your search

@@ -391,7 +391,9 @@ function newPartsFromNodes () {
function addFormula (node) {
if (node.formula === undefined) {
node.formula = {}
node.formula = {
code: DEFAULT_FORMULA_TEXT
}
createPart('Formula', '', node.formula, node, node)
}
}
@@ -417,7 +419,9 @@ function newPartsFromNodes () {
let m = phaseParent.phases.length
let phase = {
name: 'New Phase',
formula: {},
formula: {
code: DEFAULT_FORMULA_TEXT
},
nextPhaseEvent: {
situations: []
}