mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
cleaned up comments
This commit is contained in:
@@ -51,7 +51,6 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
|
||||
|
||||
// If the workflow is not deployed, return appropriate response
|
||||
if (!workflowData.isDeployed || !workflowData.deployedState) {
|
||||
logger.info(`[${requestId}] No deployed state available for workflow: ${id}`)
|
||||
const response = createSuccessResponse({
|
||||
deployedState: null,
|
||||
message: 'Workflow is not deployed or has no deployed state',
|
||||
@@ -59,7 +58,6 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
|
||||
return addNoCacheHeaders(response)
|
||||
}
|
||||
|
||||
logger.info(`[${requestId}] Successfully retrieved deployed state for: ${id}`)
|
||||
const response = createSuccessResponse({
|
||||
deployedState: workflowData.deployedState,
|
||||
})
|
||||
|
||||
@@ -406,10 +406,8 @@ export function DeployModal({
|
||||
}
|
||||
|
||||
// Fetch the updated deployed state after redeployment
|
||||
logger.info('Redeployment successful, fetching updated deployed state')
|
||||
await refetchDeployedState()
|
||||
|
||||
// Add a success notification
|
||||
addNotification('info', 'Workflow successfully redeployed', workflowId)
|
||||
} catch (error: any) {
|
||||
logger.error('Error redeploying workflow:', { error })
|
||||
@@ -421,7 +419,6 @@ export function DeployModal({
|
||||
|
||||
// Custom close handler to ensure we clean up loading states
|
||||
const handleCloseModal = () => {
|
||||
// Reset all loading states
|
||||
setIsSubmitting(false)
|
||||
setIsChatDeploying(false)
|
||||
setChatSubmitting(false)
|
||||
@@ -520,7 +517,6 @@ export function DeployModal({
|
||||
apiKey
|
||||
)
|
||||
|
||||
logger.info('Workflow automatically deployed for chat deployment')
|
||||
} catch (error: any) {
|
||||
logger.error('Error auto-deploying workflow for chat:', { error })
|
||||
addNotification('error', `Failed to deploy workflow: ${error.message}`, workflowId)
|
||||
|
||||
@@ -175,10 +175,6 @@ export function WorkflowPreview({
|
||||
})
|
||||
})
|
||||
}
|
||||
logger.info(`Preview node created: ${blockId}`, {
|
||||
blockType: block.type,
|
||||
hasSubBlocks: block.subBlocks && Object.keys(block.subBlocks).length > 0,
|
||||
})
|
||||
})
|
||||
|
||||
return nodeArray
|
||||
|
||||
Reference in New Issue
Block a user