Skip to content

Commit 8b8a080

Browse files
committed
fixing more PR comments
1 parent 0d4a2b6 commit 8b8a080

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/amazonq/test/e2e_new/amazonq/helpers/mcpHelper.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,10 @@ export async function configureMCPServer(webviewView: WebviewView, config: MCPSe
213213
const formContainer = await filtersWrapper.findElement(By.css('.mynah-chat-item-form-items-container'))
214214
const items = await formContainer.findElements(By.css('.mynah-form-input-wrapper'))
215215

216-
for (const [formItem, index] of Object.entries(formItemsMap)) {
216+
for (const formItem of Object.keys(formItemsMap) as McpFormItem[]) {
217+
const index = formItemsMap[formItem]
217218
if (index < items.length) {
218-
await processFormItem(formItem as McpFormItem, items[index], mergedConfig)
219+
await processFormItem(formItem, items[index], mergedConfig)
219220
}
220221
}
221222
} catch (e) {

0 commit comments

Comments
 (0)