removed $smType for conditions and trigger

This commit is contained in:
ari committed 2022-05-09 21:41:49 -04:00
1 parent ebd99c80a3
commit 47bf511bbf
41 files changed
+410 -723

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ export const makeSequenceUpdater = (
},
makeChildUpdaterForChooseAction(i: number, j: number | null) {
const node = sequence[i];
if ((node.$smType === 'action') && (node.action === 'choose')) {
if (('$smType' in node) && (node.$smType === 'action') && (node.action === 'choose')) {
if (j !== null) {
return makeSequenceUpdater(
node.action_data.choose[j].sequence,