File tree 3 files changed +4
-2
lines changed
apps/api/src/yjs/v2/executor
packages/editor/src/blocks
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ export class DateInputExecutor implements IDateInputExecutor {
83
83
} ,
84
84
'Saved date input variable'
85
85
)
86
+ block . setAttribute ( 'executedAt' , new Date ( ) . toISOString ( ) )
86
87
executionItem . setCompleted ( 'success' )
87
88
} catch ( err ) {
88
89
logger ( ) . error (
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ export class DropdownInputExecutor implements IDropdownInputExecutor {
127
127
'Saved dropdown input variable'
128
128
)
129
129
}
130
+ block . setAttribute ( 'executedAt' , new Date ( ) . toISOString ( ) )
130
131
executionItem . setCompleted ( aborted ? 'aborted' : 'success' )
131
132
} catch ( err ) {
132
133
logger ( ) . error (
Original file line number Diff line number Diff line change @@ -346,12 +346,12 @@ function mustExecute(
346
346
// even if skipDependencyCheck is true
347
347
if ( skipDependencyCheck ) {
348
348
const lastExecutedAt = getExecutedAt ( block , blocks )
349
- const lastExecutedAtIsAfterEnvironmentStartedAt =
349
+ const environmentStartedAtIsAfterLastExecutedAt =
350
350
lastExecutedAt === null ||
351
351
environmentStartedAt === null ||
352
352
dfns . isAfter ( environmentStartedAt , lastExecutedAt )
353
353
354
- return isInputBlock ( block ) && lastExecutedAtIsAfterEnvironmentStartedAt
354
+ return isInputBlock ( block ) && environmentStartedAtIsAfterLastExecutedAt
355
355
}
356
356
357
357
if ( environmentStartedAt === null ) {
You can’t perform that action at this time.
0 commit comments