@@ -78,16 +78,13 @@ export const Answer = ({ answer, onCitationClicked }: Props) => {
7878 } else {
7979 citationFilename = `${ citation . filepath } - Part ${ part_i } `
8080 }
81- // } else if (citation.filepath && citation.reindex_id) {
82- // citationFilename = `${citation.filepath} - Part ${citation.reindex_id}`
8381 } else {
8482 citationFilename = `Citation ${ index } `
8583 }
8684 return citationFilename
8785 }
8886
8987 const onLikeResponseClicked = async ( ) => {
90- // if (answer.message_id == undefined) return
9188 if ( answer . message_id ) {
9289 let newFeedbackState = feedbackState
9390 // Set or unset the thumbs up state
@@ -108,7 +105,6 @@ export const Answer = ({ answer, onCitationClicked }: Props) => {
108105 }
109106
110107 const onDislikeResponseClicked = async ( ) => {
111- //if (answer.message_id == undefined) return
112108 if ( answer . message_id ) {
113109 let newFeedbackState = feedbackState
114110 if ( feedbackState === undefined || feedbackState === Feedback . Neutral || feedbackState === Feedback . Positive ) {
@@ -129,7 +125,6 @@ export const Answer = ({ answer, onCitationClicked }: Props) => {
129125 }
130126
131127 const updateFeedbackList = ( ev ?: FormEvent < HTMLElement | HTMLInputElement > , checked ?: boolean ) => {
132- //if (answer.message_id == undefined) return
133128 if ( answer . message_id ) {
134129 const selectedFeedback = ( ev ?. target as HTMLInputElement ) ?. id as Feedback
135130
@@ -146,7 +141,6 @@ export const Answer = ({ answer, onCitationClicked }: Props) => {
146141 }
147142
148143 const onSubmitNegativeFeedback = async ( ) => {
149- //if (answer.message_id == undefined) return
150144 if ( answer . message_id ) {
151145 await historyMessageFeedback ( answer . message_id , negativeFeedbackList . join ( ',' ) )
152146 resetFeedbackDialog ( )
0 commit comments