()
| 80 | } |
| 81 | |
| 82 | const handleNext1 = async () => { |
| 83 | if (JSON.stringify(credentialsSchema) === '{}') { |
| 84 | const params = { |
| 85 | name: bundleName, |
| 86 | bundle_id: bundleId, |
| 87 | } |
| 88 | try { |
| 89 | setNextLoading1(true) |
| 90 | await createPlugin(params) |
| 91 | const params1 = { |
| 92 | limit: 100, |
| 93 | offset: 0, |
| 94 | lang: 'en' |
| 95 | } |
| 96 | await getBundleList(params1) |
| 97 | handleConfirmRequest() |
| 98 | handleCloseModal() |
| 99 | setOpenCreateModal3(false) |
| 100 | setOpenCreateModal2(false) |
| 101 | toast.success('Creation successful!') |
| 102 | } catch (e) { |
| 103 | const apiError = e as ApiErrorResponse; |
| 104 | const errorMessage: string = apiError.response.data.error.message; |
| 105 | toast.error(errorMessage) |
| 106 | } finally { |
| 107 | setNextLoading1(false) |
| 108 | } |
| 109 | } else { |
| 110 | form.resetFields() |
| 111 | setOpenCreateModal3(true) |
| 112 | } |
| 113 | } |
| 114 | const handleCancel1 = () => { |
| 115 | setOpenCreateModal2(false) |
| 116 | } |
nothing calls this directly
no test coverage detected