@@ -78,16 +78,13 @@ export const Answer = ({ answer, onCitationClicked }: Props) => {
78
78
} else {
79
79
citationFilename = `${ citation . filepath } - Part ${ part_i } `
80
80
}
81
- // } else if (citation.filepath && citation.reindex_id) {
82
- // citationFilename = `${citation.filepath} - Part ${citation.reindex_id}`
83
81
} else {
84
82
citationFilename = `Citation ${ index } `
85
83
}
86
84
return citationFilename
87
85
}
88
86
89
87
const onLikeResponseClicked = async ( ) => {
90
- // if (answer.message_id == undefined) return
91
88
if ( answer . message_id ) {
92
89
let newFeedbackState = feedbackState
93
90
// Set or unset the thumbs up state
@@ -108,7 +105,6 @@ export const Answer = ({ answer, onCitationClicked }: Props) => {
108
105
}
109
106
110
107
const onDislikeResponseClicked = async ( ) => {
111
- //if (answer.message_id == undefined) return
112
108
if ( answer . message_id ) {
113
109
let newFeedbackState = feedbackState
114
110
if ( feedbackState === undefined || feedbackState === Feedback . Neutral || feedbackState === Feedback . Positive ) {
@@ -129,7 +125,6 @@ export const Answer = ({ answer, onCitationClicked }: Props) => {
129
125
}
130
126
131
127
const updateFeedbackList = ( ev ?: FormEvent < HTMLElement | HTMLInputElement > , checked ?: boolean ) => {
132
- //if (answer.message_id == undefined) return
133
128
if ( answer . message_id ) {
134
129
const selectedFeedback = ( ev ?. target as HTMLInputElement ) ?. id as Feedback
135
130
@@ -146,7 +141,6 @@ export const Answer = ({ answer, onCitationClicked }: Props) => {
146
141
}
147
142
148
143
const onSubmitNegativeFeedback = async ( ) => {
149
- //if (answer.message_id == undefined) return
150
144
if ( answer . message_id ) {
151
145
await historyMessageFeedback ( answer . message_id , negativeFeedbackList . join ( ',' ) )
152
146
resetFeedbackDialog ( )
0 commit comments