(keyValue)
| 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 = {} |