fix phase undefined
This commit is contained in:
1 parent
4e6c3b15e7
commit
3738c7277a
3 files changed
+4
-2
No files matched your search
@@ -1502,6 +1502,7 @@
|
||||
|
||||
if (parentNode !== undefined) {
|
||||
let phase = parentNode.takeProfit.phases[p];
|
||||
if (phase === undefined) {return} // trying to jump to a phase that does not exists.
|
||||
|
||||
let nextPhaseEvent = phase.nextPhaseEvent;
|
||||
if (nextPhaseEvent !== undefined) {
|
||||
|
||||
Reference in new issue
Block a user