Skip to content

Commit 558b457

Browse files
authored
AI Client: remove call to accept handler from discard handler (#35238)
* remove call to accept handler from discard handler * fix versions
1 parent 004def9 commit 558b457

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: changed
3+
4+
AI Control: do not call onAccept from the discard handler. A fix has been put in place on #35236

projects/js-packages/ai-client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": false,
33
"name": "@automattic/jetpack-ai-client",
4-
"version": "0.4.1",
4+
"version": "0.5.0-alpha",
55
"description": "A JS client for consuming Jetpack AI services",
66
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/ai-client/#readme",
77
"bugs": {

projects/js-packages/ai-client/src/components/ai-control/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ export function AIControl(
118118

119119
const discardHandler = useCallback( () => {
120120
onDiscard?.();
121-
onAccept?.();
122121
}, [] );
123122

124123
const cancelEdit = useCallback( () => {

0 commit comments

Comments
 (0)