(key: string, newValue: string)
| 49 | }, [currentScenario]) |
| 50 | |
| 51 | const setValue = (key: string, newValue: string) => { |
| 52 | const newScenario = { ...editingScenario } |
| 53 | newScenario[key] = newValue |
| 54 | setEditingScenario(newScenario) |
| 55 | if (key === 'method') { |
| 56 | saveScenario(newScenario) |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | return ( |
| 61 | <> |
no test coverage detected