(Variable)
| 36 | } |
| 37 | |
| 38 | const 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 | |
| 53 | const sanitizeAssistant = (Assistant) => { |
| 54 | try { |
no test coverage detected