File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
client/packages/openblocks/src/comps/controls/actionSelector Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -279,14 +279,22 @@ function actionSelectorControl(needContext: boolean) {
279
279
if ( ! this . children . condition . getView ( ) ) {
280
280
return ;
281
281
}
282
+
283
+ let executor = ( x : Function ) => x ( ) ;
284
+
285
+ const limitEnabled = ! ! this . children . delay . unevaledValue ;
286
+ if ( limitEnabled ) {
287
+ executor = limitExecutor (
288
+ this ,
289
+ "execute_query" ,
290
+ this . children . slowdown . getView ( ) ,
291
+ this . children . delay . getView ( )
292
+ ) ;
293
+ }
294
+
282
295
return ( ) =>
283
296
getPromiseAfterExecuteDispatch (
284
- limitExecutor (
285
- this ,
286
- "execute_query" ,
287
- this . children . slowdown . getView ( ) ,
288
- this . children . delay . getView ( )
289
- ) ,
297
+ executor ,
290
298
this . dispatch ,
291
299
customAction < ActionTriggered > ( {
292
300
type : ACTION_TRIGGERED_TYPE_STRING ,
You can’t perform that action at this time.
0 commit comments