@@ -14,7 +14,11 @@ import { useTracker, useTrackerAsyncTest } from '../../../../lib/ReactMeteorData
1414import { ActionEditor } from './actionEditors/ActionEditor'
1515import { OutputLayers , SourceLayers } from '@sofie-automation/corelib/dist/dataModel/ShowStyleBase'
1616import { flatten , getRandomString } from '../../../../lib/tempLib'
17- import { createAction , isPreviewableAction } from '@sofie-automation/meteor-lib/dist/triggers/actionFactory'
17+ import {
18+ createAction ,
19+ isPreviewableAction ,
20+ PlainActionContext ,
21+ } from '@sofie-automation/meteor-lib/dist/triggers/actionFactory'
1822import { PreviewContext } from './TriggeredActionsEditor'
1923import { IWrappedAdLib } from '@sofie-automation/meteor-lib/dist/triggers/actionFilterChainCompilers'
2024import { RundownUtils } from '../../../../lib/rundown'
@@ -193,12 +197,16 @@ export const TriggeredActionEntry: React.FC<IProps> = React.memo(function Trigge
193197 const ctx = previewContext
194198 if ( ! ctx || ! ctx . rundownPlaylist ) return [ ]
195199
200+ const actionCtx = ctx as PlainActionContext
201+
202+ console . log ( 'aa,' , computation , ctx , executableActions )
203+
196204 return flatten (
197205 await Promise . all (
198- executableActions . map (
199- async ( action ) : Promise < IWrappedAdLib [ ] > =>
200- isPreviewableAction ( action ) ? action . preview ( ctx as any , triggerComputation ) : [ ]
201- )
206+ executableActions . map ( async ( action ) : Promise < IWrappedAdLib [ ] > => {
207+ console . log ( 'check' , action , isPreviewableAction ( action ) )
208+ return isPreviewableAction ( action ) ? action . preview ( actionCtx , triggerComputation ) : [ ]
209+ } )
202210 )
203211 )
204212 } catch ( e ) {
0 commit comments