cleaned up comments

This commit is contained in:
Adam Gough
2025-05-28 10:35:06 -07:00
parent 798cdd1a56
commit ada5f5162e
3 changed files with 0 additions and 10 deletions

View File

@@ -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,
})

View File

@@ -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)

View File

@@ -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