File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -210,12 +210,14 @@ class Scf {
210
210
const { triggerKey } = triggerClass . formatInputs ( this . region , funcInfo , event [ Type ] ) ;
211
211
for ( let i = 0 ; i < oldList . length ; i ++ ) {
212
212
const curOld = oldList [ i ] ;
213
- const oldTriggerClass = TRIGGERS [ curOld . Type ] ;
214
- const oldKey = oldTriggerClass . getKey ( curOld ) ;
215
- if ( oldKey === triggerKey ) {
216
- deleteList [ i ] = null ;
217
- createList [ index ] = null ;
218
- updateList . push ( createList [ index ] ) ;
213
+ if ( curOld . Type === Type ) {
214
+ const oldTriggerClass = TRIGGERS [ curOld . Type ] ;
215
+ const oldKey = oldTriggerClass . getKey ( curOld ) ;
216
+ if ( oldKey === triggerKey ) {
217
+ deleteList [ i ] = null ;
218
+ createList [ index ] = null ;
219
+ updateList . push ( createList [ index ] ) ;
220
+ }
219
221
}
220
222
}
221
223
}
You can’t perform that action at this time.
0 commit comments