MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / handleNext1

Function handleNext1

frontend/src/components/createPlugin/index.tsx:82–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 4

createPluginFunction · 0.90
getBundleListFunction · 0.70
handleConfirmRequestFunction · 0.50
handleCloseModalFunction · 0.50

Tested by

no test coverage detected