Skip to content

Commit abf8f43

Browse files
committed
fix(dev): add it back cwc on stop chat response
1 parent 2374e67 commit abf8f43

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

plugins/amazonq/mynah-ui/src/mynah-ui/ui/connector.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,13 @@ export class Connector {
397397
}
398398

399399
onStopChatResponse = (tabID: string): void => {
400-
if (this.tabsStorage.getTab(tabID)?.type === 'featuredev') {
401-
this.featureDevChatConnector.onStopChatResponse(tabID)
400+
switch (this.tabsStorage.getTab(tabID)?.type) {
401+
case 'featuredev':
402+
this.featureDevChatConnector.onStopChatResponse(tabID)
403+
break
404+
case 'cwc':
405+
this.cwChatConnector.onStopChatResponse(tabID)
406+
break
402407
}
403408
}
404409

0 commit comments

Comments
 (0)