Skip to content

Commit 93967cf

Browse files
wyf7107copybara-github
authored andcommitted
fix: Fix pending event dialog response has nested 'response' key.
PiperOrigin-RevId: 836291639
1 parent 342e0d2 commit 93967cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/core/services/pending-event.service.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('PendingEventService', () => {
2626
'function_response': {
2727
id,
2828
name,
29-
'response': {'response': response},
29+
'response': response,
3030
},
3131
};
3232

@@ -43,7 +43,7 @@ describe('PendingEventService', () => {
4343
'function_response': {
4444
id,
4545
name,
46-
'response': {'response': {}},
46+
'response': {},
4747
},
4848
};
4949

src/app/core/services/pending-event.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class PendingEventServiceImpl extends PendingEventService {
3232
response: {[key: string]: unknown},
3333
): any {
3434
return {
35-
'function_response': {id, name, response: {'response': response}},
35+
'function_response': {id, name, response: response},
3636
};
3737
}
3838
}

0 commit comments

Comments
 (0)