()
| 241 | |
| 242 | useEffect(() => { |
| 243 | async function validateScript() { |
| 244 | setApiErrorResponse(null) |
| 245 | |
| 246 | const response = await session.apiClient.validateScript(currentGuildId, script.id, { |
| 247 | settings_values: newValues |
| 248 | }) |
| 249 | |
| 250 | if (isErrorResponse(response)) { |
| 251 | setApiErrorResponse(response) |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | if (!isValidating) { |
| 256 | setIsValidating(true) |
no test coverage detected