Skip to content

Commit 026056a

Browse files
authored
fix: remove the incorrect accept and reject buttons while hovering over the generated file (#5239)
1 parent f5ed158 commit 026056a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Fix incorrect accept and reject buttons shows up while hovering over the generated file"
4+
}

plugins/amazonq/mynah-ui/src/mynah-ui/ui/apps/docChatConnector.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ export class Connector {
196196

197197
private processCodeResultMessage = async (messageData: any): Promise<void> => {
198198
if (this.onChatAnswerReceived !== undefined) {
199-
const actions = getActions([...messageData.filePaths, ...messageData.deletedFiles])
200199
const answer: ChatItem = {
201200
type: ChatItemType.ANSWER,
202201
relatedContent: undefined,
@@ -209,8 +208,7 @@ export class Connector {
209208
fileTreeTitle: 'Documents ready',
210209
rootFolderTitle: 'Generated documentation',
211210
filePaths: (messageData.filePaths as DiffTreeFileInfo[]).map(path => path.zipFilePath),
212-
deletedFiles: (messageData.deletedFiles as DiffTreeFileInfo[]).map(path => path.zipFilePath),
213-
actions,
211+
deletedFiles: (messageData.deletedFiles as DiffTreeFileInfo[]).map(path => path.zipFilePath)
214212
},
215213
body: '',
216214
}

0 commit comments

Comments
 (0)