Skip to content

Commit 9ef0eb2

Browse files
committed
Remove onAIColumnResponseReceived code
1 parent b317191 commit 9ef0eb2

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

packages/devextreme/js/__internal/grids/grid_core/ai_column/controllers/m_ai_column_integration_controller.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,29 +55,16 @@ export class AIColumnIntegrationController extends Controller {
5555
cachedResponse: Record<PropertyKey, string>,
5656
callBacks?: RequestCallbacks<GenerateGridColumnCommandResult>,
5757
): RequestCallbacks<GenerateGridColumnCommandResult> {
58-
const column = this.columnsController.getColumnByName(columnName);
5958
const callbacks = {
6059
onComplete: (finalResponse: GenerateGridColumnCommandResult): void => {
6160
if (this.isRequestAwaitingCompletion(columnName)) {
62-
const args = {
63-
column,
64-
error: null,
65-
data: finalResponse.data,
66-
};
67-
68-
this.executeAction('onAIColumnResponseReceived', args);
6961
this.aiColumnCacheController.setCachedResponse(columnName, finalResponse.data);
7062
this.processCommandCompletion(columnName);
7163
callBacks?.onComplete?.(finalResponse);
7264
}
7365
},
7466
onError: (error: Error): void => {
7567
const message = error?.message ?? error;
76-
this.executeAction('onAIColumnResponseReceived', {
77-
column,
78-
error: message,
79-
data: null,
80-
});
8168
this.showError(message);
8269
this.processCommandCompletion(columnName);
8370
callBacks?.onError?.(error);
@@ -96,7 +83,6 @@ export class AIColumnIntegrationController extends Controller {
9683
this.aiColumnCacheController.init();
9784

9885
this.createAction('onAIColumnRequestCreating');
99-
this.createAction('onAIColumnResponseReceived');
10086
}
10187

10288
public sendRequestCore({

0 commit comments

Comments
 (0)