Skip to content

Commit 2c21a3c

Browse files
committed
fix not setting executedAt for date and dropdown input
1 parent d3f9339 commit 2c21a3c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

apps/api/src/yjs/v2/executor/date-input.ts

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export class DateInputExecutor implements IDateInputExecutor {
8383
},
8484
'Saved date input variable'
8585
)
86+
block.setAttribute('executedAt', new Date().toISOString())
8687
executionItem.setCompleted('success')
8788
} catch (err) {
8889
logger().error(

apps/api/src/yjs/v2/executor/dropdown-input.ts

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export class DropdownInputExecutor implements IDropdownInputExecutor {
127127
'Saved dropdown input variable'
128128
)
129129
}
130+
block.setAttribute('executedAt', new Date().toISOString())
130131
executionItem.setCompleted(aborted ? 'aborted' : 'success')
131132
} catch (err) {
132133
logger().error(

packages/editor/src/blocks/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,12 @@ function mustExecute(
346346
// even if skipDependencyCheck is true
347347
if (skipDependencyCheck) {
348348
const lastExecutedAt = getExecutedAt(block, blocks)
349-
const lastExecutedAtIsAfterEnvironmentStartedAt =
349+
const environmentStartedAtIsAfterLastExecutedAt =
350350
lastExecutedAt === null ||
351351
environmentStartedAt === null ||
352352
dfns.isAfter(environmentStartedAt, lastExecutedAt)
353353

354-
return isInputBlock(block) && lastExecutedAtIsAfterEnvironmentStartedAt
354+
return isInputBlock(block) && environmentStartedAtIsAfterLastExecutedAt
355355
}
356356

357357
if (environmentStartedAt === null) {

0 commit comments

Comments
 (0)