MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / onApiKeySelected

Function onApiKeySelected

packages/ui/src/views/chatflows/APICodeDialog.jsx:174–186  ·  view source on GitHub ↗
(keyValue)

Source from the content-addressed store, hash-verified

172 }
173
174 const onApiKeySelected = (keyValue) => {
175 if (keyValue === 'addnewkey') {
176 navigate('/apikey')
177 return
178 }
179 setChatflowApiKeyId(keyValue)
180 const selectedKey = apiKeys.find((key) => key.id === keyValue)
181 setSelectedApiKey(selectedKey || {})
182 const updateBody = {
183 apikeyid: keyValue
184 }
185 updateChatflowApi.request(dialogProps.chatflowid, updateBody)
186 }
187
188 const groupByNodeLabel = (nodes) => {
189 const result = {}

Callers 1

APICodeDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected