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

Function sanitizeVariable

packages/ui/src/utils/exportImport.js:38–51  ·  view source on GitHub ↗
(Variable)

Source from the content-addressed store, hash-verified

36}
37
38const sanitizeVariable = (Variable) => {
39 try {
40 return Variable.map((variable) => {
41 return {
42 id: variable.id,
43 name: variable.name,
44 value: variable.value,
45 type: variable.type
46 }
47 })
48 } catch (error) {
49 throw new Error(`exportImport.sanitizeVariable ${getErrorMessage(error)}`)
50 }
51}
52
53const sanitizeAssistant = (Assistant) => {
54 try {

Callers 1

exportDataFunction · 0.85

Calls 1

getErrorMessageFunction · 0.90

Tested by

no test coverage detected