(formElm: string, errorMessage: string)
| 2435 | } catch (e) { |
| 2436 | if (e instanceof FormError) { |
| 2437 | this.handleError(e); |
| 2438 | } |
| 2439 | return; |
| 2440 | } |
| 2441 | if (this.fetchURL !== "") { |
| 2442 | const onSubmit = async (json: any) => { |
| 2443 | try { |
| 2444 | await this.onSubmit(json, build); |
| 2445 | } catch (e) { |
| 2446 | console.error(e); |
| 2447 | if (e instanceof FormError) { |
| 2448 | this.handleError(e); |
| 2449 | } |
| 2450 | return; |
| 2451 | } |
| 2452 | }; |
| 2453 | const doFetch = async () => { |
no test coverage detected