File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,15 @@ export async function handlePublish(agentIds: string[]): Promise<PublishResult>
148148 }
149149
150150 // Process the template for publishing
151- const processedTemplate = { ...matchingTemplate }
151+ const processedTemplate = { ...matchingTemplate } ;
152152
153153 // Convert handleSteps function to string if present
154154 if ( typeof ( matchingTemplate as any ) . handleSteps === 'function' ) {
155- const handleSteps = ( matchingTemplate as any ) . handleSteps . toString ( )
156- ( processedTemplate as any ) . handleSteps = handleSteps
155+ const handleStepsValue = ( matchingTemplate as any ) . handleSteps as (
156+ ...args : any [ ]
157+ ) => unknown ;
158+ const handleStepsString = handleStepsValue . toString ( ) ;
159+ ( processedTemplate as any ) . handleSteps = handleStepsString ;
157160 }
158161
159162 matchingTemplates [ matchingTemplate . id ] = processedTemplate
You can’t perform that action at this time.
0 commit comments