MCPcopy
hub / github.com/FlowiseAI/Flowise / sanitizeExecution

Function sanitizeExecution

packages/ui/src/utils/exportImport.js:89–98  ·  view source on GitHub ↗
(Execution)

Source from the content-addressed store, hash-verified

87}
88
89const sanitizeExecution = (Execution) => {
90 try {
91 return Execution.map((execution) => {
92 if (execution.agentflow) execution.agentflow.workspaceId = undefined
93 return { ...execution, workspaceId: undefined }
94 })
95 } catch (error) {
96 throw new Error(`exportImport.sanitizeExecution ${getErrorMessage(error)}`)
97 }
98}
99
100export const stringify = (object) => {
101 try {

Callers 1

exportDataFunction · 0.85

Calls 1

getErrorMessageFunction · 0.90

Tested by

no test coverage detected