Commit 7cc1e2f 1 parent 1863245 commit 7cc1e2f Copy full SHA for 7cc1e2f
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export interface MessageBaseProps {
80
80
isLoading : boolean ;
81
81
hidePreviews ?: boolean ;
82
82
onPrompt ?: ( prompt ?: string ) => void ;
83
- onResubmitClick ?: ( ) => void ;
83
+ onResubmitClick ?: ( promptText ?: string ) => void ;
84
84
onDeleteBeforeClick ?: ( ) => void ;
85
85
onDeleteClick ?: ( ) => void ;
86
86
onDeleteAfterClick ?: ( ) => void ;
@@ -337,7 +337,7 @@ function MessageBase({
337
337
. finally ( ( ) => {
338
338
onEditingChange ( false ) ;
339
339
if ( action === "resubmit" && onResubmitClick ) {
340
- onResubmitClick ( ) ;
340
+ onResubmitClick ( text ) ;
341
341
}
342
342
messageForm . current ?. removeAttribute ( "data-action" ) ;
343
343
} ) ;
Original file line number Diff line number Diff line change @@ -97,9 +97,9 @@ function MessagesView({
97
97
message = { message }
98
98
chatId = { chatId }
99
99
isLoading = { isLoading }
100
- onResubmitClick = { async ( ) => {
100
+ onResubmitClick = { async ( promptText ?: string ) => {
101
101
await deleteMessages ( message . id , "after" ) ;
102
- onPrompt ( ) ;
102
+ onPrompt ( promptText ) ;
103
103
} }
104
104
onDeleteBeforeClick = {
105
105
hasMessagesBefore ? ( ) => deleteMessages ( message . id , "before" ) : undefined
You can’t perform that action at this time.
0 commit comments